Esempio n. 1
0
 public List <tbl_000_COMPANY> GetAll()
 {
     try
     {
         return(compdal.GetAll());
     }catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 2
0
        public List <CompanyDTO> GetAllCompany()
        {
            List <Company> CompaniesDAL = new List <Company>();

            CompaniesDAL = companyDAL.GetAll();
            foreach (var company in CompaniesDAL)
            {
                CompanyDTO companyDTO = new CompanyDTO();
                companyDTO.Id   = company.Id;
                companyDTO.Name = company.Name;
                companyDTO.OrganizationalForm = company.OrganizationalForm;
                companyDTO.Size = company.Size;
                Companies.Add(companyDTO);
            }
            return(Companies);
        }