Exemplo n.º 1
0
        public async Task <IActionResult> Edit(PixelArt p)
        {
            if (ModelState.IsValid)
            {
                _context.Entry(p).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
                await _context.SaveChangesAsync();

                ViewData["Message"] = "Pixel Art updated successfully!";
            }

            return(View(p));
        }
        public async Task <ActionResult> Edit(CommissionsLog c)
        {
            if (ModelState.IsValid)
            {
                _context.Entry(c).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
                await _context.SaveChangesAsync();

                ViewData["Message"] = "The Commission Entry was updated successfully!";
            }

            return(View(c));
        }