public IHttpActionResult PosttblBooking(tblBooking tblBooking) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } //db.tblBookings.Add(tblBooking); db.proc_Booking(tblBooking.UserID); db.SaveChanges(); return(CreatedAtRoute("DefaultApi", new { id = tblBooking.BID }, tblBooking)); }