public async Task <ActionResult> SavePlayToTeam(string Id, string teamId, string InstallPlay, TeamInstallDTO model) { TeamViewModel viewModel = new TeamViewModel(); if (InstallPlay != "-1") { if (await viewModel.InsertInstallPlay(Id, InstallPlay)) { TempData["ErrorMessage"] = "Play added to team"; } else { TempData["ErrorMessage"] = "There is some problem in adding play to team"; } } else { TempData["ErrorMessage"] = "Please select play"; } ActionResult result; result = RedirectToAction("Install", new { teamId = teamId }); return(await Task.FromResult(result)); }