// GET: CosmeticService/Booking public ActionResult Create(int serviceId) { CosmeticService cosmeticService = cosmeticServiceService.GetByIdCosmeticService(serviceId); var bookingCosmeticServiceModel = new BookingCosmeticServiceModel() { ServiceId = cosmeticService.Id, Nameservice = cosmeticService.Nameservice, Price = cosmeticService.Price }; return(View("Create", bookingCosmeticServiceModel)); }
// GET: CosmeticService public ActionResult Update(int id) { var cosmeticServicemodel = new CosmeticServiceModel(); var cosmeticService = cosmeticServiceService.GetByIdCosmeticService(id); cosmeticServicemodel.Id = cosmeticService.Id; cosmeticServicemodel.Nameservice = cosmeticService.Nameservice; cosmeticServicemodel.Price = cosmeticService.Price; return(View("Update", cosmeticServicemodel)); }