//Update
 public int UpdateDetails(CartRecord custDB)
 {
     lock (locker)
     {
         return(conn.Update(custDB));
     }
 }
 //Insert
 public int InsertDetails(CartRecord custDB)
 {
     lock (locker)
     {
         return(conn.Insert(custDB));
     }
 }