Ejemplo n.º 1
0
 public ContentResult GetDictionariesStates(int typeId)
 {
     //bool saveResult;
     //string error = string.Empty;
     HelpServiceDictionariesStatesModel model = new HelpServiceDictionariesStatesModel {Error = string.Empty};
     try
     {
             HelpBl.GetDictionariesStates(typeId,model);
     }
     catch (Exception ex)
     {
         Log.Error("Exception on GetDictionariesStates:", ex);
         model.Error = ex.GetBaseException().Message;
     }
     JavaScriptSerializer jsonSerializer = new JavaScriptSerializer();
     var jsonString = jsonSerializer.Serialize(model);
     return Content(jsonString);
 }
Ejemplo n.º 2
0
 public void GetDictionariesStates(int typeId,HelpServiceDictionariesStatesModel model)
 {
     HelpServiceType type = HelpServiceTypeDao.Load(typeId);
     SetDistionariesFlag(model, type);
 }