Exemple #1
0
 public Department GetDepartment(string departmentID)
 {
     try
     {
         using (ProxyAE ae = new ProxyAE())
         {
             Guid DID = new Guid(departmentID);
             Department dp = ae.Client.GetDepartment(sender, DID);
             return dp;
         }
     }
     catch (System.Exception ex)
     {
         PLogger.LogError(ex);
         throw ex;
     }
 }
Exemple #2
0
 public SearchResult SearchDepartment(bool IsDisabled, string Category)
 {
     try
     {
         using (ProxyAE ae = new ProxyAE())
         {
             SearchDepartmentArgs args = new SearchDepartmentArgs();
             args.IsDisabled = IsDisabled;
             args.Category = Category;
             SearchResult sr  = ae.Client.SearchDepartment(sender, args);
             return sr;
         }
     }
     catch (System.Exception ex)
     {
         PLogger.LogError(ex);
         throw ex;
     }
 }