private void LoadCompany()
        {
            var list = _CompanyRepo.GetAll();

            ddlCompany.DataSource = list;
            ddlCompany.DataBind();
        }
Пример #2
0
 public List <Company> GetAll()
 {
     try
     {
         return(_repo.GetAll());
     }
     catch (Exception ex)
     {
         _logger.Error("Error during CompanyService.GetAll", ex);
         throw;
     }
 }