public async Task <IActionResult> Register(CompanyRegisterDTO company) { if (!ModelState.IsValid) { return(BadRequest()); } await companyService.AddCommpanyAsync(company); return(RedirectToAction("Index", "Home")); }
public async Task <IActionResult> Register(CompanyRegisterDTO company) { if (!ModelState.IsValid) { return(BadRequest()); } await companyService.AddCommpanyAsync(company); return(RedirectToAction("Index", "Home")); }