コード例 #1
0
 public ActionResult <CompanyResponse> GetCompanyEmployees(int idCompany)
 {
     try
     {
         var result          = _companyAppService.GetACompanyEmployees(idCompany);
         var CompanyResponse = _mapper.Map <Company, CompanyResponse>(result);
         return(CustomResponse(CompanyResponse));
     }
     catch (Exception ex)
     {
         MessageException();
         return(CustomExceptionResponse());
     }
 }