public void Insert(int Stt, string MaDangky, short Nam, byte TrangThai, byte Loai, string UsedBy, DateTime?StartTime, DateTime?EndTime, string UnlockBy, DateTime?UnlockTime)
        {
            KnDmucMadangky item = new KnDmucMadangky();

            item.Stt = Stt;

            item.MaDangky = MaDangky;

            item.Nam = Nam;

            item.TrangThai = TrangThai;

            item.Loai = Loai;

            item.UsedBy = UsedBy;

            item.StartTime = StartTime;

            item.EndTime = EndTime;

            item.UnlockBy = UnlockBy;

            item.UnlockTime = UnlockTime;


            item.Save(UserName);
        }
 public bool Destroy(object MaDangky)
 {
     return(KnDmucMadangky.Destroy(MaDangky) == 1);
 }
 public bool Delete(object MaDangky)
 {
     return(KnDmucMadangky.Delete(MaDangky) == 1);
 }