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(); }
public void ShowFormClick() { EditedArticle = new ArticleDTO { DateSubmitted = DateTime.UtcNow, Message = "<<<<<a>>>" }; }
public void ShowFormClick() { EditedArticle = new ArticleDTO { DateSubmitted = DateTime.UtcNow, Message = "<<<<<a>>>" }; }
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(); }
public void RewriteArticle() { ShowFirstForm = false; EditedArticle = new ArticleDTO { DateSubmitted = DateTime.Today, Message = "<<<<b" }; }
public void RewriteArticle() { ShowFirstForm = false; EditedArticle = new ArticleDTO { DateSubmitted = DateTime.Today, Message = "<<<<b" }; }