public ActionResult Save(int id, bool selectVal) { FeedbacksBLL fbb = new FeedbacksBLL(); var fb = FiiiPayDB.FeedbacksDb.GetById(id); fb.HasProcessor = selectVal; return(Json(fbb.Update(fb, UserId, UserName).toJson())); }
public ActionResult LoadData(GridPager pager, string type, bool?hasProcessor) { FeedbacksBLL fb = new FeedbacksBLL(); var cotunryList = FoundationDB.CountryDb.GetList(); var data = fb.GetFeedbacksList(type, hasProcessor, ref pager); var obj = data.ToGridJson(pager, r => new { id = r.Id, cell = new { Id = r.Id, Date = r.Timestamp.ToLocalTime().ToString("yyyy-MM-dd HH:mm"), Type = r.Type, AccountId = r.AccountName, Country = cotunryList.Where(t => t.Id == r.CountryId).Select(t => t.Name).FirstOrDefault(), Context = r.Context, HasProcessor = r.HasProcessor } }); return(Json(obj, JsonRequestBehavior.AllowGet)); }
public ActionResult BatchDelete(string ids) { FeedbacksBLL fbb = new FeedbacksBLL(); return(Json(fbb.BatchDelete(ids, UserId, UserName).toJson())); }
public ActionResult Delete(int id) { FeedbacksBLL fbb = new FeedbacksBLL(); return(Json(fbb.DeleteById(id, UserId, UserName).toJson())); }