public static void Update(this OrganizationUnitManager manager, OrganizationUnit organizationUnit) { AsyncHelper.RunSync(() => manager.UpdateAsync(organizationUnit)); }
public virtual async Task UpdateAsync(OrganizationUnit organizationUnit) { await ValidateOrganizationUnitAsync(organizationUnit); await OrganizationUnitRepository.UpdateAsync(organizationUnit); }