Example #1
0
        public async Task <ActionResult <Leilao> > GetLeilao(int id)
        {
            //P.S: n esta sendo editado, mas time que ta winning não se change
            var leilao = await _facade.EditLeilao(id);

            if (leilao == null)
            {
                return(NotFound());
            }

            return(leilao);
        }
Example #2
0
        // GET: Leilao/Edit/5
        public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var leilao = await _facade.EditLeilao(id);

            if (leilao == null)
            {
                return(NotFound());
            }
            return(View(leilao));
        }