Beispiel #1
0
        public async Task <ActionResult> DeleteInstallPlay(string id, string playId, string teamId)
        {
            var viewModel = new TeamViewModel();

            if (await viewModel.DeleteInstallPlay(id, playId))
            {
                TempData["ErrorMessage"] = "Install play is deleted from install";
            }
            else
            {
                TempData["ErrorMessage"] = "There is some problem in deleting install play";
            }

            ActionResult result;

            result = RedirectToAction("Install", new { teamId = teamId });
            return(await Task.FromResult(result));
        }