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