public ActionResult PhotoGrapherBooking(PhotoGrapherBooking book)
        {
            bk.AddBooking(book);

            TempData["msg"] = "<script>alert('PhotoGrapher Booking Successfully ,FeedBack Soon');</script>";

            //Current Url Redirect

            return(Redirect(HttpContext.Request.UrlReferrer.AbsoluteUri));
        }
Esempio n. 2
0
 public bool AddBooking(PhotoGrapherBooking Booked)
 {
     Db.Set <PhotoGrapherBooking>().Add(Booked);
     Db.SaveChanges();
     return(true);
 }