public IActionResult SaveYachtBook(YachtBookingModel model) { if (ModelState.IsValid) { //HttpContext.Session.SetObject("YachtCart", model); //RedisCachesModel redisModel = new RedisCachesModel(); //_yachtBookingService.SaveYachtBookingtoRedis(redisModel); } return(Ok()); }
public IActionResult YachtBookingForm(YachtBookingModel model) { var lstAttribute = new List <string>() { "Bathroom", "Bedding" }; var responseDetail = _yatchService.GetYatchDetail(model.YachtID.ToString(), 1, true, lstAttribute).Result; model.Details = responseDetail.GetDataResponse(); return(PartialView("_YachtBookingForm", model)); }