public string Del(HistoryData model) { var rst = new ReturnResult <bool>(); var bll = new HistoryDataBll(); rst = bll.Delete(model); return(JsonHelper.Instance.Serialize(rst)); }
public string GetList(HistoryData model) { var rst = new ReturnResult <List <HistoryData> >(); var bll = new HistoryDataBll(); rst = bll.GetList(model); return(JsonHelper.Instance.Serialize(rst)); }
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)); }