Ejemplo n.º 1
0
 public ActionResult DeleteConfirmed(int id, DeleteAdDto model)
 {
     model.Id     = id;
     model.UserId = GetUserId().Result;
     _deleteOfferCommand.Execute(new DeleteOfferDto()
     {
         Id     = model.Id,
         UserId = model.UserId
     });
     return(RedirectToAction("Index", "Home"));
 }