public async Task <ActionResult> CreateOrUpdate(CompanyDto companyDto) { if (ModelState.IsValid) { await _companyAppService.SaveAsync(companyDto, userName); return(RedirectToAction("Index")); } return(PartialView("_CreateOrUpdate", companyDto)); }
public async Task <ActionResult> CreateOrUpdate(CompanyDto companyDto) { if (ModelState.IsValid) { await _companyAppService.SaveAsync(companyDto, userName); return(RedirectToAction("Index")); } return(PartialView("_CreateOrUpdate", companyDto)); }