Exemple #1
0
        public async Task <IActionResult> Create([Bind("Id,FirstName,LastName,RefNumber,BirthDate,RefType,Category,CategoryType,Distrikt,Club,StreetAddress,Zipcode,County,Phone1,Phone2,Email,Registred,Created,Payed")] Domarlista domarlista)
        {
            if (ModelState.IsValid)
            {
                _context.Add(domarlista);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(domarlista));
        }
Exemple #2
0
        public async Task <IActionResult> Create([Bind("Id,Receipt_Id,MatchNumber,MatchDate,Match,MatchRef1,FeeRef1,AllowanceRef1,TravelCostRef1,MatchRef2,FeeRef2,AllowanceRef2,TravelCostRef2,MatchRef3,FeeRef3,AllowanceRef3,TravelCostRef3,MatchRef4,FeeRef4,AllowanceRef4,TravelCostRef4")] Receipt receipt)
        {
            if (ModelState.IsValid)
            {
                _context.Add(receipt);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(receipt));
        }