Esempio n. 1
0
        public IActionResult DeleteSeed(int id)
        {
            var seedUserId = _seedService.GetSeedById(id).UserId;

            if (seedUserId != userId)
            {
                return(RedirectToAction("Index"));
            }
            _seedService.DeleteSeed(id);
            return(RedirectToAction("Index"));
        }