public ActionResult CreateLocation(Locations location) { if (ModelState.IsValid) { try { activitiesRepo.SaveLocation(location); return(RedirectToAction("Index")); } catch { return(HttpNotFound()); } } return(View(location)); }
public ActionResult CreateLocation(Locations location) { if (ModelState.IsValid) { try { activitiesRepo.SaveLocation(location); return(RedirectToAction("Index")); } catch { return(HttpNotFound()); } } return(View(location)); }