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