Exemplo n.º 1
0
 public static List <OrganizationUnit> FindChildren(this OrganizationUnitManager manager, long?parentId, bool recursive = false)
 {
     return(AsyncHelper.RunSync(() => manager.FindChildrenAsync(parentId, recursive)));
 }
Exemplo n.º 2
0
 public static string GetCode(this OrganizationUnitManager manager, long id)
 {
     return(AsyncHelper.RunSync(() => manager.GetCodeAsync(id)));
 }
Exemplo n.º 3
0
 public static void Move(this OrganizationUnitManager manager, long id, long?parentId)
 {
     AsyncHelper.RunSync(() => manager.MoveAsync(id, parentId));
 }
Exemplo n.º 4
0
 public static OrganizationUnit GetLastChildOrNull(this OrganizationUnitManager manager, long?parentId)
 {
     return(AsyncHelper.RunSync(() => manager.GetLastChildOrNullAsync(parentId)));
 }
Exemplo n.º 5
0
 public static string GetNextChildCode(this OrganizationUnitManager manager, long?parentId)
 {
     return(AsyncHelper.RunSync(() => manager.GetNextChildCodeAsync(parentId)));
 }
Exemplo n.º 6
0
 public static void Delete(this OrganizationUnitManager manager, long id)
 {
     AsyncHelper.RunSync(() => manager.DeleteAsync(id));
 }
Exemplo n.º 7
0
 public static void Update(this OrganizationUnitManager manager, OrganizationUnit organizationUnit)
 {
     AsyncHelper.RunSync(() => manager.UpdateAsync(organizationUnit));
 }