Пример #1
0
 public ActionResult AddService()
 {
     var things = orderService.GetThingsList();
     var model = new AddServiceModel
     {
         Things = things,
         Selected = new List<ThingsDTO>(),
         Posted = new Posted { ServiceIDs = new int[0] },
     };
     return View(model);
 }
Пример #2
0
 public ActionResult AddService(AddServiceModel addService)
 {
     pricingService.AddService(addService.Service, addService.Posted.ServiceIDs);
     return RedirectToAction("Index");
 }