示例#1
0
        public ActionResult Delete(Record r)
        {
            RecordModel rm = new RecordModel();

            rm.Entry(r).State = EntityState.Deleted;
            rm.SaveChanges();
            return(View("Index", rm.Records.ToList()));
        }