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