Ejemplo n.º 1
0
 public IActionResult Edit(Data.Models.Collection service)
 {
     if (ModelState.IsValid)
     {
         _context.Update(service);
         _context.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(service));
 }
Ejemplo n.º 2
0
 public IActionResult Edit(Baner baner)
 {
     if (ModelState.IsValid)
     {
         _context.Update(baner);
         _context.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(baner));
 }
Ejemplo n.º 3
0
 public IActionResult Edit(BusinessItem businessItem)
 {
     if (ModelState.IsValid)
     {
         _context.Update(businessItem);
         _context.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewData["BusinessId"] = new SelectList(_context.Businesses, "Id", "Business", businessItem.BusinessId);
     return(View(businessItem));
 }