Exemplo n.º 1
0
 public IActionResult Operation(int id, string op)
 {
     postServer.RecordDate(id);
     if (op == "plus")
     {
         postServer.PlusPostFre(id);
     }
     else if (op == "minus")
     {
         postServer.MinusPostFre(id);
     }
     return(RedirectToAction(nameof(Index)));
 }
Exemplo n.º 2
0
 public IActionResult Operation(string userName, int id, string op)
 {
     postServer.RecordDate(id);
     if (op == "plus")
     {
         postServer.PlusPostFre(id);
     }
     else if (op == "minus")
     {
         postServer.MinusPostFre(id);
     }
     return(Redirect($"/?username={userName}"));
 }