public virtual bool OnBaseSysCultureDeleted() { CultureInfo cultureInfo = CultureInfo.GetCultureInfo(Entity.Name); GeneralResourceStorage.RemoveCultureInfo(cultureInfo); return(true); }
public string SaveWebFormObjectData(FormData formData) { SetHeaderCORS(); if (UserConnection == null || formData == null || formData.formFieldsData == null) { return(string.Empty); } SessionHelper.SpecifyWebOperationIdentity(CurrentHttpContext, UserConnection.CurrentUser); GeneralResourceStorage.SetCurentCulture(UserConnection.CurrentUser.Culture); WebFormHandler.HandleForm(formData); if (!WebFormHandler.Success) { return(Json.Serialize(GetErrorSavingResult(WebFormHandler, formData))); } return(Json.Serialize(GetSuccessSavingResult())); }
public UserManagementService() { GeneralResourceStorage.SetCurentCulture(PreferredUserCulture); }