public void Update(TDateFormat dateFormat) { ThrowIfDisposed(); ThrowIfArgumentIsNull(dateFormat, nameof(dateFormat)); DaAsyncHelper.RunSync(() => UpdateAsync(dateFormat)); }
private static void CreateSystemRoles() { string[] systemRoles = { DaRole.GLOBAL_SUPER_ADMIN, DaRole.TENANT_SUPER_ADMIN, DaRole.USER }; var roleManager = new DaRoleManager(new DaRoleRepository(IdentityDbContext)); DaRole role = null; foreach (var systemRole in systemRoles) { role = new DaRole(); role.Name = systemRole; var result = DaAsyncHelper.RunSync <IdentityResult>(() => roleManager.CreateAsync(role)); if (!result.Succeeded) { if (result.Errors != null && result.Errors.Count() > 0) { StringBuilder sbMessages = new StringBuilder(); foreach (var err in result.Errors) { sbMessages.Append(err + " "); } throw new Exception(sbMessages.ToString()); } } } }
public virtual void Update(TFeature feature) { DaAsyncHelper.RunSync(() => UpdateAsync(feature)); }
public virtual TFeature FindByName(string name) { return(DaAsyncHelper.RunSync <TFeature>(() => FindByKeyAsync(name))); }
public virtual TFeature FindById(TKey id) { return(DaAsyncHelper.RunSync <TFeature>(() => FindByIdAsync(id))); }
public bool CheckTenantUserActiveAssociation(TKey tenantId, TKey userId) { return(DaAsyncHelper.RunSync <bool>(() => CheckTenantUserActiveAssociationAsync(tenantId, userId))); }
public TTenant FindByKey(string tenantKey) { return(DaAsyncHelper.RunSync <TTenant>(() => FindByKeyAsync(tenantKey))); }
public void Update(TTenant tenant) { DaAsyncHelper.RunSync(() => UpdateAsync(tenant)); }
public virtual TUserProfile FindById(TKey id) { return(DaAsyncHelper.RunSync <TUserProfile>(() => FindByIdAsync(id))); }
public virtual void Delete(TUserProfile userProfile) { DaAsyncHelper.RunSync(() => DeleteAsync(userProfile)); }
public List <TSystemLanguage> FindByCountryId(TKey countryId) { return(DaAsyncHelper.RunSync <List <TSystemLanguage> >(() => FindByCountryIdAsync(countryId))); }
public TSystemLanguage FindById(TKey id) { return(DaAsyncHelper.RunSync <TSystemLanguage>(() => FindByIdAsync(id))); }
public List <TSystemLanguage> FindAll() { return(DaAsyncHelper.RunSync <List <TSystemLanguage> >(() => FindAllAsync())); }
public void Delete(TSystemLanguage systemLanguage) { DaAsyncHelper.RunSync(() => DeleteAsync(systemLanguage)); }
public void Update(TSystemLanguage systemLanguage) { DaAsyncHelper.RunSync(() => UpdateAsync(systemLanguage)); }
public virtual List <TAccount> FindByOwnerUserId(TKey ownerUserId) { return(DaAsyncHelper.RunSync <List <TAccount> >(() => FindByOwnerUserIdAsync(ownerUserId))); }
public void Create(TTenant tenant) { ThrowIfDisposed(); ThrowIfArgumentIsNull(tenant, "tenant"); DaAsyncHelper.RunSync(() => CreateAsync(tenant)); }
public virtual List <TUserProfile> FindByUserId(TKey userId) { return(DaAsyncHelper.RunSync <List <TUserProfile> >(() => FindByUserIdAsync(userId))); }
public TTenant FindById(TKey tenantId) { return(DaAsyncHelper.RunSync <TTenant>(() => FindByIdAsync(tenantId))); }
public virtual void Delete(TSubscriptionPlan subscriptionPlan) { DaAsyncHelper.RunSync(() => DeleteAsync(subscriptionPlan)); }
public List <TTenant> FindByUserId(TKey userId) { return(DaAsyncHelper.RunSync <List <TTenant> >(() => FindByUserIdAsync(userId))); }
public virtual TSubscriptionPlan FindById(TKey id) { return(DaAsyncHelper.RunSync <TSubscriptionPlan>(() => FindByIdAsync(id))); }
public virtual void Delete(TFeature feature) { DaAsyncHelper.RunSync(() => DeleteAsync(feature)); }
public virtual List <TSubscriptionPlan> FindAll() { return(DaAsyncHelper.RunSync <List <TSubscriptionPlan> >(() => FindAllAsync())); }
public virtual List <TFeature> FindAll() { return(DaAsyncHelper.RunSync <List <TFeature> >(() => FindAllAsync())); }
public virtual void Create(TTransaction feature) { DaAsyncHelper.RunSync(() => CreateAsync(feature)); }
public virtual string CreateValidFeatureKey(TFeature feature) { return(DaAsyncHelper.RunSync <string>(() => CreateValidFeatureKeyAsync(feature))); }
public virtual TAccount FindById(TKey id) { return(DaAsyncHelper.RunSync <TAccount>(() => FindByIdAsync(id))); }
public virtual void Publish(TFeature feature) { DaAsyncHelper.RunSync(() => PublishAsync(feature)); }
public virtual List <TAccount> FindByTenantId(TKey tenatId) { return(DaAsyncHelper.RunSync <List <TAccount> >(() => FindByTenantIdAsync(tenatId))); }