Exemplo n.º 1
0
        public ActionResult Delete(WalksViewModel walk)
        {
            try
            {
                foreach (int walkId in walk.WalkIds)
                {
                    _walkRepo.DeleteWalks(walkId);
                }

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }