Exemplo n.º 1
0
        public async Task <IActionResult> Create(AuctionData obj)
        {
            var result = await _bllAuctionData.AddAsync(new BO.AuctionData()
            {
                StartDate = obj.StartDate,
                EndDate   = obj.EndDate
            });

            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Edit(AuctionData obj)
        {
            var result = await _bllAuctionData.UpdateAsync(new BO.AuctionData()
            {
                Id        = obj.Id,
                StartDate = obj.StartDate,
                EndDate   = obj.EndDate
            });

            return(RedirectToAction("Index"));
        }