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)); }
public bool AddBooking(PhotoGrapherBooking Booked) { Db.Set <PhotoGrapherBooking>().Add(Booked); Db.SaveChanges(); return(true); }