Exemple #1
0
        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));
        }
Exemple #3
0
        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));
        }
Exemple #7
0
        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));
        }
Exemple #8
0
        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));
        }