Esempio n. 1
0
 public async Task <ActionResult> UpdateCompanyFullProfile([FromBody] CompanyProfileModel companyProfileModel) => await Exec(async operation =>
 {
     var(_, id) = VerifyUser(UserRole.Company);
     if (!ModelState.IsValid)
     {
         throw new Exception(ExceptionMessage.ModelIsInvalid);
     }
     var entity = companyProfileModel.ToEntity(id);
     await companyProfileService.UpdateCompanyFullProfile(operation, entity);
 });