public IActionResult OnPost(int MessageId)
 {
     Message       = messageData.GetById(MessageId);
     Message.count = messageData.Like(Message);
     messageData.Commit();
     return(RedirectToPage("./MessageBox"));
 }
Exemple #2
0
 public IActionResult OnPost()
 {
     if (ModelState.IsValid)
     {
         Message = messageData.AddPost(Message);
         messageData.Commit();
         return(RedirectToPage("./MessageBox"));
     }
     return(Page());
 }
 public IActionResult OnPost()
 {
     Messages = messageData.AddComment(Messages);
     messageData.Commit();
     return(RedirectToPage("./MessageBox"));
 }