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; } }
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; } }