public ActionResult AllDisable(int?id) { if (id == null) { throw new ArgumentNullException("id"); } Feature feature = featRepo.Get(f => f.ID == id); if (feature == null) { return(HttpNotFound()); } feature.FeatInfor = false; feature.FeatLogRec = false; List <string> updatedProps = new List <string>(); updatedProps.Add("FeatInfor"); updatedProps.Add("FeatLogRec"); featRepo.UpdateBySql(feature, updatedProps); ; return(RedirectToAction("Index")); }