Пример #1
0
        public ActionResult Delete(ContextViewModel viewModel)
        {
            var context = new Context()
            {
                Id = viewModel.Id
            };

            _contextService.Delete(context);

            return(RedirectToAction("Index"));
        }