Ejemplo n.º 1
0
 public ActionResult AddLocation(Location model)
 {
     if (ModelState.IsValid)
     {
         var response = _main.AttemptResponse(() => { return(_admin.AddLocation(model)); });
         return(RedirectToAction("Locations"));
     }
     return(RedirectToAction("Locations"));
 }