Esempio n. 1
0
        public ActionResult EndPlayerContract(int id, PlayerDetailsViewModel model, FormCollection collection)
        {
            var playerProcessor = new PlayerProcessor();

            try
            {
                playerProcessor.DeleteContract(model.contract);
                return(RedirectToAction("Index"));
            }
            catch (Exception e)
            {
                return(View());
            }
        }