public JsonResult SaveSetting(List <CategorySettingModel> model) { try { #region " [ Declaration ] " CategorySettingService _service = new CategorySettingService(); #endregion return(this.Json(_service.Save(model, UserID), JsonRequestBehavior.AllowGet)); } catch (ServiceException serviceEx) { throw serviceEx; } catch (DataAccessException accessEx) { throw accessEx; } catch (Exception ex) { throw new ControllerException(FILE_NAME, MethodInfo.GetCurrentMethod().Name, UserID, ex); } }
public JsonResult Setting(string id, string year) { try { #region " [ Declaration ] " CategorySettingService _service = new CategorySettingService(); List <CategorySettingModel> _model = _service.GetAll(new Guid(id), int.Parse(year), UserID); #endregion return(this.Json(_model, JsonRequestBehavior.AllowGet)); } catch (ServiceException serviceEx) { throw serviceEx; } catch (DataAccessException accessEx) { throw accessEx; } catch (Exception ex) { throw new ControllerException(FILE_NAME, MethodInfo.GetCurrentMethod().Name, UserID, ex); } }