示例#1
0
        public async Task <IActionResult> Create(AuctionItem auction)
        {
            //var auction = new AuctionItem();
            auction.CreatedBy = User.Identity.Name;
            if (ModelState.IsValid)
            {
                await _auctionFacade.CreateAuction(auction);

                return(RedirectToAction("Index", "Home"));
            }

            return(View());
        }