public void AddUp(DanhMucDichVuTheoDonVi danhmucdvtheodv) { var dvtheodv = this._DanhMucDichVuTheoDonViRepository.GetSingleByCondition(x => x.IDDichVu == danhmucdvtheodv.IDDichVu && x.MaDonVi == danhmucdvtheodv.MaDonVi); if (dvtheodv == null) { this._DanhMucDichVuTheoDonViRepository.Add(danhmucdvtheodv); } else { var term = dvtheodv.RowIDDichVuTheoDonVi; DanhMucDichVuTheoDonVi newdmdv = new DanhMucDichVuTheoDonVi(); newdmdv = dvtheodv; newdmdv.RowIDDichVuTheoDonVi = term; this._DanhMucDichVuTheoDonViRepository.Update(newdmdv); } }
public void Update(DanhMucDichVuTheoDonVi DanhMucDichVuTheoDonVi) { _DanhMucDichVuTheoDonViRepository.Update(DanhMucDichVuTheoDonVi); }