Пример #1
0
        public string Del(HistoryData model)
        {
            var rst = new ReturnResult <bool>();
            var bll = new HistoryDataBll();

            rst = bll.Delete(model);

            return(JsonHelper.Instance.Serialize(rst));
        }
Пример #2
0
        public string GetList(HistoryData model)
        {
            var rst = new ReturnResult <List <HistoryData> >();
            var bll = new HistoryDataBll();

            rst = bll.GetList(model);

            return(JsonHelper.Instance.Serialize(rst));
        }
Пример #3
0
        public string Add(HistoryData model)
        {
            var rst = new ReturnResult <bool>();
            var bll = new HistoryDataBll();

            if (model.Id == 0)
            {
                rst = bll.Add(model);
            }
            else
            {
                rst = bll.Update(model);
            }

            return(JsonHelper.Instance.Serialize(rst));
        }