public IActionResult Create(CreatedStore command) { var result = storeAppService.CreateNewStore(command); if (!result.IsValid) { AddModelError(result); return(View(command)); } return(RedirectToAction("Index")); }
public IActionResult Create(CreatedStore command) { var result = storeAppService.CreateNewStore(command); if (!result.IsValid) { AddModelError(result); return(View(command)); } return(RedirectToAction("Index")); }