public ActionResult Create(Domain.Task item) { if (!ModelState.IsValid) { return(View(item)); } try { item.ApplicationUserId = User.Identity.GetUserId(); _db.Create(item); return(RedirectToAction("List", "Todo")); //return View("List", _db.getAll().Where(x => x.ApplicationUserId == User.Identity.GetUserId()).ToList()); } catch (Exception ex) { ModelState.AddModelError("", "işlem yapılırken bir hata oluştu - Hata:" + ex.Message); return(View(item)); } }