public async Task <IHttpActionResult> UpdateNestedAsync([FromBody] CompanyRead companyRead, [FromUri] int id) { var validationResults = new CompanyReadValidator().Validate(companyRead); if (!validationResults.IsValid) { return(this.BadRequest(string.Join(" , ", validationResults.Errors))); } var nestedEntity = companyRead.ToEntity(); var updatedCompany = await Task.Run(() => _companyAppService.UpdateNested(nestedEntity)); return(this.Ok(companyRead)); }