public static string Sua(GiaTuyChonDanhThiep item) { GiaTuyChonDanhThiepLogic giaTChonDThiepLogic = new GiaTuyChonDanhThiepLogic(); var itemBDO = new GiaTuyChonDanhThiepBDO(); ChuyenDoiGiayDTOThanhBDO(item, itemBDO); return(giaTChonDThiepLogic.Sua(itemBDO)); }
public static GiaTuyChonDanhThiep DocTheoId(int IdBangGiaDanhThiep, int idHangKH) { GiaTuyChonDanhThiep item = null; GiaTuyChonDanhThiepLogic markUpLNGLogic = new GiaTuyChonDanhThiepLogic(); try { item = new GiaTuyChonDanhThiep(); var itemBDO = markUpLNGLogic.DocTheoId(IdBangGiaDanhThiep, idHangKH); ChuyenDoiGiayBDOThanhDTO(itemBDO, item); } catch { } return(item); }
public static List <GiaTuyChonDanhThiep> DocTheoIdTuyChon(int iD) { List <GiaTuyChonDanhThiep> lst = null; GiaTuyChonDanhThiepLogic giaTChonDThiepLogic = new GiaTuyChonDanhThiepLogic(); try { lst = giaTChonDThiepLogic.DocTheoIdTuyChon(iD).Select(x => new GiaTuyChonDanhThiep { IdBangGiaDanhThiep = x.IdBangGiaDanhThiep, IdTuyChonDanhThiep = x.IdTuyChonDanhThiep, TenBangGia = x.TenBangGia, GiaBan = x.GiaBan }).ToList(); } catch { } return(lst); }
public static string Xoa(int idBangGia, int idTuyChon) { GiaTuyChonDanhThiepLogic giaTChonDThiepLogic = new GiaTuyChonDanhThiepLogic(); return(giaTChonDThiepLogic.Xoa(idBangGia, idTuyChon)); }