public async Task <IActionResult> Create([Bind("PlayerId,Player,PlayerRole,Price")] KingsXipunjab kingsXipunjab) { if (ModelState.IsValid) { _context.Add(kingsXipunjab); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(kingsXipunjab)); }
public async Task <IActionResult> Create([Bind("PlayerId,Player,PlayerRole,Price")] RoyalChallengersBanglore royalChallengersBanglore) { if (ModelState.IsValid) { _context.Add(royalChallengersBanglore); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(royalChallengersBanglore)); }
public async Task <IActionResult> Create([Bind("PlayerId,Player,Matches,Wickets")] TopBowler topBowler) { if (ModelState.IsValid) { _context.Add(topBowler); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(topBowler)); }
public async Task <IActionResult> Create([Bind("PlayerId,Player,PlayerRole,Price")] ChennaiSuperKing chennaiSuperKing) { if (ModelState.IsValid) { _context.Add(chennaiSuperKing); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(chennaiSuperKing)); }
public async Task <IActionResult> Create([Bind("PlayerId,Player,PlayerRole,Price")] DelhiCapital delhiCapital) { if (ModelState.IsValid) { _context.Add(delhiCapital); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(delhiCapital)); }
public async Task <IActionResult> Create([Bind("PlayerId,Player,Innings,Runs")] TopBatsmen topBatsmen) { if (ModelState.IsValid) { _context.Add(topBatsmen); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(topBatsmen)); }
public async Task <IActionResult> Create([Bind("TeamId,Teams,Matches,Won,Lost,Tied,Points,Nrr,Nrrposition")] PointsTable pointsTable) { if (ModelState.IsValid) { _context.Add(pointsTable); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(pointsTable)); }
public async Task <IActionResult> Create([Bind("PlayerId,Player,PlayerRole,Price")] SunRisesHyderabad sunRisesHyderabad) { if (ModelState.IsValid) { _context.Add(sunRisesHyderabad); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(sunRisesHyderabad)); }
public async Task <IActionResult> Create([Bind("PlayerId,Player,PlayerRole,Price")] KolkataKnightRider kolkataKnightRider) { if (ModelState.IsValid) { _context.Add(kolkataKnightRider); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(kolkataKnightRider)); }