public async Task <IActionResult> Create(UserStatusModel model) { var exist = _userStatusService.FindByName(model.Name); if (exist != null) { return(RedirectToErrorPage()); } var status = new UserStatusModifyRequest() { Id = model.Id, Name = model.Name, Description = model.Description }; var id = await _userStatusService.CreateAsync(status); return(RedirectToAction(nameof(Detail), new { id })); }