public IActionResult Create(Service service) { if (ModelState.IsValid) { _context.AddService(service); return RedirectToAction("Index"); } return View(service); }
public IActionResult Edit(Service service) { if (ModelState.IsValid) { //_context.Update(service); //_context.SaveChanges(); return RedirectToAction("Index"); } return View(service); }