public void Insert(short?IdCanLamSangThucHien, short?ThucHienCho, short?TrangThaiThucHien,
                           short?YeuCauXetNghiemId, long?Id, string MaBenhNhan, string Barcode, int?TestTypeId, string Sophieu,
                           DateTime?TestDate, bool?IsTestName, bool?SendStatus)
        {
            var item = new TblYeucauXetnghiemVnio();

            item.IdCanLamSangThucHien = IdCanLamSangThucHien;

            item.ThucHienCho = ThucHienCho;

            item.TrangThaiThucHien = TrangThaiThucHien;

            item.YeuCauXetNghiemId = YeuCauXetNghiemId;

            item.Id = Id;

            item.MaBenhNhan = MaBenhNhan;

            item.Barcode = Barcode;

            item.TestTypeId = TestTypeId;

            item.Sophieu = Sophieu;

            item.TestDate = TestDate;

            item.IsTestName = IsTestName;

            item.SendStatus = SendStatus;


            item.Save(UserName);
        }
 public bool Destroy(object IdXetnghiem)
 {
     return(TblYeucauXetnghiemVnio.Destroy(IdXetnghiem) == 1);
 }