Пример #1
0
 public void EditArticleClick(int id)
 {
     EditedArticle = Articles
         .Where(a => a.Id == id)
         .Select(a => new ArticleDTO { Id = a.Id, DateSubmitted = a.DateSubmitted, Message = a.Message })
         .SingleOrDefault();
 }
Пример #2
0
 public void ShowFormClick()
 {
     EditedArticle = new ArticleDTO
     {
         DateSubmitted = DateTime.UtcNow,
         Message       = "<<<<<a>>>"
     };
 }
Пример #3
0
 public void ShowFormClick()
 {
     EditedArticle = new ArticleDTO
     {
         DateSubmitted = DateTime.UtcNow,
         Message = "<<<<<a>>>"
     };
 }
Пример #4
0
 public void EditArticleClick(int id)
 {
     EditedArticle = Articles
                     .Where(a => a.Id == id)
                     .Select(a => new ArticleDTO {
         Id = a.Id, DateSubmitted = a.DateSubmitted, Message = a.Message
     })
                     .SingleOrDefault();
 }
Пример #5
0
 public void RewriteArticle()
 {
     ShowFirstForm = false;
     EditedArticle = new ArticleDTO
     {
         DateSubmitted = DateTime.Today,
         Message       = "<<<<b"
     };
 }
Пример #6
0
 public void RewriteArticle()
 {
     ShowFirstForm = false;
     EditedArticle = new ArticleDTO
     {
         DateSubmitted = DateTime.Today,
         Message = "<<<<b"
     };
 }