예제 #1
0
        public JsonResult DeleteHistory(int id)
        {
            var check = new HistoryDao().DeleteHistory(id);

            return(Json(new
            {
                status = check
            }, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public JsonResult DeleteAllHistory(string ids)
        {
            var listId = new JavaScriptSerializer().Deserialize <List <int> >(ids);
            var check  = new HistoryDao().DeleteHistorys(listId);

            return(Json(new
            {
                status = check
            }, JsonRequestBehavior.AllowGet));
        }
예제 #3
0
        public JsonResult GetAll(string seach, int brandid, int typeid, int month, int page, int pageSize)
        {
            var result = new HistoryDao().GetAll(seach, brandid, typeid, month, page, pageSize);

            return(Json(new
            {
                totalRow = result.TotalRecord,
                data = result.Items
            }, JsonRequestBehavior.AllowGet));
        }