コード例 #1
0
 public ActionResult AddThing()
 {
     var services = orderService.GetServicesList();
     var model = new AddThingModel
     {
         Services = services,
         Selected = new List<ServicesDTO>(),
         Posted = new Posted { ServiceIDs = new int[0]},
     };
     return View(model);
 }
コード例 #2
0
 public ActionResult AddThing(AddThingModel addThing)
 {
     pricingService.AddThing(addThing.Thing, addThing.Posted.ServiceIDs);
     return RedirectToAction("Index");
 }