Exemplo n.º 1
0
 public IActionResult OnPost()
 {
     MessageBoard.AddMessage(Message);
     MessageBoard.Commit();
     TempData["Msg"] = "Restaurant saved!";
     return(RedirectToPage("./Timeline"));
 }
 public async Task <ActionResult <int> > AddMessage(string content)
 {
     return(await MessageBoard.AddMessage(content));
 }