public async Task <IActionResult> EditEnterpriseProfile(EditEnterpriseParameters enterprise) { if (ModelState.IsValid) { var temp = await enterpriseService.EditEnterpriseProfile(enterprise); if (temp != null) { return(Ok(temp)); } else { return(BadRequest(new { Message = "Something went wrong. Please, try again later." })); } } else { return(BadRequest(new { Message = "Invalid parameters supplied." })); } }