Ejemplo n.º 1
0
        public IActionResult Delete(AssignmentItem model)
        {
            var deleteModel = _db.AssignmentItems.Find(model.Id);

            _db.Remove(deleteModel);
            _db.SaveChanges();
            return(RedirectToAction("Index"));
        }