示例#1
0
        public IActionResult Create(CreatedStore command)
        {
            var result = storeAppService.CreateNewStore(command);

            if (!result.IsValid)
            {
                AddModelError(result);
                return(View(command));
            }

            return(RedirectToAction("Index"));
        }