public ActionResult <IEnumerable <CompanyResponse> > GetAllCompany() { try { var result = _companyAppService.GetAllCompany().ToList(); var listCompanyResponse = _mapper.Map <List <Company>, List <CompanyResponse> >(result); return(CustomResponse(listCompanyResponse)); } catch (Exception ex) { MessageException(); return(CustomExceptionResponse()); } }