Exemple #1
0
        public void Update(Guid Id, string TenMauThongBao, string NoiDung, DateTime NgayTao, string NguoiTao, DateTime?NgayCapNhat, string NguoiCapNhat, bool TrangThai)
        {
            TblMauThongBao item = new TblMauThongBao();

            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.TenMauThongBao = TenMauThongBao;

            item.NoiDung = NoiDung;

            item.NgayTao = NgayTao;

            item.NguoiTao = NguoiTao;

            item.NgayCapNhat = NgayCapNhat;

            item.NguoiCapNhat = NguoiCapNhat;

            item.TrangThai = TrangThai;

            item.Save(UserName);
        }
Exemple #2
0
 public bool Destroy(object Id)
 {
     return(TblMauThongBao.Destroy(Id) == 1);
 }
Exemple #3
0
 public bool Delete(object Id)
 {
     return(TblMauThongBao.Delete(Id) == 1);
 }
Exemple #4
0
 public TblMauThongBao Update(TblMauThongBao item)
 {
     item.Save(UserName);
     return(item);
 }
Exemple #5
0
 public TblMauThongBao Insert(TblMauThongBao item)
 {
     item.Save(UserName);
     return(item);
 }