Exemplo n.º 1
0
        public OfficeTable GetOffices()
        {
            OfficeMaster Office  = new OfficeMaster();
            OfficeTable  Offices = new OfficeTable();

            Offices = Office.GetOfficeDetails();
            return(Offices);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 8
0
 public OfficeTable GetOffices()
 {
     OfficeMaster Office = new OfficeMaster();
     OfficeTable Offices = new OfficeTable();
     Offices=Office.GetOfficeDetails();
     return Offices;
 }