예제 #1
0
 public async Task <IActionResult> addReply(int publ, int id, FullPublicacionViewModel viewModel)
 {
     if (viewModel.Reply != null)
     {
         if (await _repository.addReply(User.Identity.Name, id, viewModel))
         {
             return(RedirectToAction("Index", new { id = publ }));
         }
         else
         {
             return(RedirectToAction("Index", new { id = publ }));
         }
     }
     return(RedirectToAction("Index", new { id = publ }));
 }