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); }
public ActionResult AddThing(AddThingModel addThing) { pricingService.AddThing(addThing.Thing, addThing.Posted.ServiceIDs); return RedirectToAction("Index"); }