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); }
public bool Destroy(object Id) { return(TblMauThongBao.Destroy(Id) == 1); }
public bool Delete(object Id) { return(TblMauThongBao.Delete(Id) == 1); }
public TblMauThongBao Update(TblMauThongBao item) { item.Save(UserName); return(item); }
public TblMauThongBao Insert(TblMauThongBao item) { item.Save(UserName); return(item); }