This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public JsonResult GridData(GridSettings gridSettings) | |
| { | |
| ... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @(Html.Grid("basic") | |
| .SetCaption("Basic Grid") | |
| .AddColumn(new Column("CustomerId") | |
| .SetLabel("Id")) | |
| .AddColumn(new Column("Name")) | |
| .AddColumn(new Column("Company")) | |
| .AddColumn(new Column("EmailAddress")) | |
| .AddColumn(new Column("Last Modified")) | |
| .AddColumn(new Column("Telephone")) | |
| .SetUrl("/Home/GridData/") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.IO; | |
| using System.Net.Mail; | |
| using System.Reflection; | |
| using System.Text; | |
| namespace Infrastructure.MailMessageExtensions | |
| { | |
| public static class MailMessageExtensions | |
| { | |
| public static string ToEml(this MailMessage message) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var mailMessage = new MailMessage(); | |
| string eml = mailMessage.ToEml(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ViewBaseClass<TModel> : DefaultTemplateBase<TModel> | |
| { | |
| private readonly ITranslationService _translationService; | |
| private CultureInfo _culture; | |
| public ViewBaseClass(ITranslationService translationService, IApplicationSettings applicationSettings) | |
| { | |
| _translationService = translationService; | |
| ApplicationSettings = applicationSettings; | |
| } |
NewerOlder