public IActionResult Create(int buisnessId, RateReviewCreateViewModel model) { if (!ModelState.IsValid) { return(View(model)); } model.Persist(); return(RedirectToAction(controllerName: nameof(Buisness), actionName: nameof(Index))); }
public IActionResult Create(int locationId, RateReviewCreateViewModel model) { if (!ModelState.IsValid) { return(View()); } model.Persist(repositoryFactory); return(RedirectToAction(controllerName: nameof(Location), actionName: nameof(Index))); }