public IHttpActionResult GetByIdWithEmployees(long id) { try { var companyDto = _companyAppService.GetByIdWithEmployees(id); var companyModel = Mapper.Map <CompanyModel>(companyDto); return(Ok(companyModel)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }