public ActionResult RequestAWalk(WalkFormViewModel vm) { try { _ownerRepo.AddWalk(vm.Walk); return(RedirectToAction("Index", "Owner")); } catch { return(View(vm)); } }
public ActionResult RequestAWalk(WalkFormViewModel vm) { try { _ownerRepo.AddWalk(vm.Walk); return(RedirectToAction("Index", "Owner")); } catch { return(View(vm)); } }