Esempio n. 1
0
        public IActionResult Delete(TaskItem model)
        {
            var deleteModel = _db.TaskItems.Find(model.Id);

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