public GuestCheck GetGuestCheckData(int id)
 {
     try
     {
         GuestCheck guestCheck = db.GuestCheck.Find(id);
         return(guestCheck);
     }
     catch
     {
         throw;
     }
 }
 //To Update the records of a particluar GuestCheck
 public int UpdateGuestCheck(GuestCheck guestCheck)
 {
     try
     {
         db.Entry(guestCheck).State = EntityState.Modified;
         db.SaveChanges();
         return(1);
     }
     catch
     {
         throw;
     }
 }
 //To Add new GuestCheck record
 public int AddGuestCheck(GuestCheck guestCheck)
 {
     try
     {
         db.GuestCheck.Add(guestCheck);
         db.SaveChanges();
         return(1);
     }
     catch
     {
         throw;
     }
 }