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); }
public void GetDictionariesStates(int typeId,HelpServiceDictionariesStatesModel model) { HelpServiceType type = HelpServiceTypeDao.Load(typeId); SetDistionariesFlag(model, type); }