Пример #1
0
        public ActionResult BookPackage(PackageBooking packageBooking)
        {
            if (ModelState.IsValid)
            {
                packageBooking.TimeStamp = DateTime.Now;
                _packageService.CreateBookPackage(packageBooking);
                ViewBag.IsSuccess = "Your Package Booking requirest has been successfully sent.";
                return(View());
            }
            ModelState.AddModelError("", "Please fill up the required fields.");

            return(View());
        }