public IActionResult DeleteSeed(int id) { var seedUserId = _seedService.GetSeedById(id).UserId; if (seedUserId != userId) { return(RedirectToAction("Index")); } _seedService.DeleteSeed(id); return(RedirectToAction("Index")); }