Beispiel #1
0
 public DMLoaiAnPhamModel(DMLoaiAnPham DMLoaiAnPham)
 {
     this.Id = DMLoaiAnPham.Id;
        this.TenLoaiAnPham = DMLoaiAnPham.TenLoaiAnPham;
        this.CoKyXuatBan = DMLoaiAnPham.CoKyXuatBan;
        this.Status = DMLoaiAnPham.Status;
 }
Beispiel #2
0
 public DMLoaiAnPham toDMLoaiAnPham()
 {
     DMLoaiAnPham result = new DMLoaiAnPham();
        result.Id = this.Id;
        result.TenLoaiAnPham = this.TenLoaiAnPham;
        result.CoKyXuatBan = this.CoKyXuatBan;
        result.Status = this.Status;
        return result;
 }
 public int Add(DMLoaiAnPham DMLoaiAnPham)
 {
     //throw new NotImplementedException();
     db.DMLoaiAnPhams.Add(DMLoaiAnPham);
     return db.SaveChanges();
 }