Пример #1
0
        public OfficeTable GetOffices()
        {
            OfficeMaster Office  = new OfficeMaster();
            OfficeTable  Offices = new OfficeTable();

            Offices = Office.GetOfficeDetails();
            return(Offices);
        }
Пример #2
0
        public OfficesTable GetOffices()
        {
            OfficesTable Dt = new OfficesTable();

            try
            {
                Dt = IgrssAdapters.OfficesAdapter.GetOffices();
            }
            catch (Exception ex)
            {
                if (ExceptionPolicy.HandleException(ex, "DAL"))
                {
                    throw;
                }
            }
            return(Dt);
        }
Пример #3
0
        public OfficesTable SearchOfficeByName(string OfficeNameToMatch)
        {
            OfficesTable Dt = new OfficesTable();

            try
            {
                Dt = IgrssAdapters.OfficesAdapter.FindOfficeByName(OfficeNameToMatch);
            }
            catch (Exception ex)
            {
                if (ExceptionPolicy.HandleException(ex, "DAL"))
                {
                    throw;
                }
            }
            return(Dt);
        }
Пример #4
0
        public OfficesTable GetOfficeDetailsById(Guid OfficeId)
        {
            OfficesTable Dt = new OfficesTable();

            try
            {
                Dt = IgrssAdapters.OfficesAdapter.GetOfficeInfoById(OfficeId);
            }
            catch (Exception ex)
            {
                if (ExceptionPolicy.HandleException(ex, "DAL"))
                {
                    throw;
                }
            }
            return(Dt);
        }
Пример #5
0
 public OfficesTable GetOfficeDetailsById(Guid OfficeId)
 {
     OfficesTable Dt = new OfficesTable();
     try
     {
         Dt=IgrssAdapters.OfficesAdapter.GetOfficeInfoById(OfficeId);
     }
     catch (Exception ex)
     {
         if (ExceptionPolicy.HandleException(ex, "DAL"))
             throw;
     }
     return Dt;
 }
Пример #6
0
 public OfficesTable SearchOfficeByName(string OfficeNameToMatch)
 {
     OfficesTable Dt = new OfficesTable();
     try
     {
         Dt=IgrssAdapters.OfficesAdapter.FindOfficeByName(OfficeNameToMatch);
     }
     catch (Exception ex)
     {
         if (ExceptionPolicy.HandleException(ex, "DAL"))
             throw;
     }
     return Dt;
 }
Пример #7
0
 public OfficesTable GetOffices()
 {
     OfficesTable Dt = new OfficesTable();
     try
     {
         Dt=IgrssAdapters.OfficesAdapter.GetOffices();
     }
     catch (Exception ex)
     {
         if (ExceptionPolicy.HandleException(ex, "DAL"))
             throw;
     }
     return Dt;
 }
Пример #8
0
 public OfficeTable GetOffices()
 {
     OfficeMaster Office = new OfficeMaster();
     OfficeTable Offices = new OfficeTable();
     Offices=Office.GetOfficeDetails();
     return Offices;
 }