public ActionResult CompleteToTask(string Id) { try { _db.CompleteIt(Id); return(View("List", _db.getAll().Where(x => x.ApplicationUserId == User.Identity.GetUserId()).ToList())); } catch (Exception ex) { return(View("List", _db.getAll().Where(x => x.ApplicationUserId == User.Identity.GetUserId()).ToList())); } }