Exemplo n.º 1
0
        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()));
 }
Exemplo n.º 3
0
 public UserManagementService()
 {
     GeneralResourceStorage.SetCurentCulture(PreferredUserCulture);
 }