Пример #1
0
        public IActionResult AddRepair(AddRepair model)
        {
            type_of_repair type_of_repair = new type_of_repair()
            {
                cost = model.cost,
                name = model.name
            };

            _context.type_of_repair.Add(type_of_repair);
            _context.SaveChanges();
            return(RedirectToAction("AddRepairToAvto", "AddSome", new { id = model.Avto_Key }));
        }
Пример #2
0
 public IActionResult EditRepair(type_of_repair model)
 {
     _context.type_of_repair.Update(model);
     _context.SaveChanges();
     return(RedirectToAction("ShowsRepair", "Shows"));
 }