示例#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);
 }
示例#2
0
文件: HelpBl.cs 项目: andreyu/Reports
 public void GetDictionariesStates(int typeId,HelpServiceDictionariesStatesModel model)
 {
     HelpServiceType type = HelpServiceTypeDao.Load(typeId);
     SetDistionariesFlag(model, type);
 }