public static List <BangGiaTheNhua> DocTheoIdHangKH(int idHangKH) { var giayLogic = new BangGiaTheNhuaLogic(); List <BangGiaTheNhua> nguon = null; try { nguon = giayLogic.DocTatCa().Where(x => (x.IdHangKhachHang == idHangKH) && (x.KhongCon == false)).Select(x => new BangGiaTheNhua { ID = x.ID, Ten = x.Ten, MoTa = x.MoTa, DaySoLuong = x.DaySoLuong, DayGia = x.DayGia, InHaiMat = x.InHaiMat, KhongCon = x.KhongCon, IdHangKhachHang = x.IdHangKhachHang, SoTheToiDa = x.SoTheToiDa, NoiDungBangGia = x.NoiDungBangGia, VatLieuInBaoGom = x.VatLieuInBaoGom, KhoToChay = x.KhoToChay, ThuTu = x.ThuTu }).OrderBy(x => x.ThuTu).ToList(); } catch { } return(nguon); }
public static string Sua(BangGiaTheNhua bGiaDThiep) { var bangGiaTheNhuaLogic = new BangGiaTheNhuaLogic(); var itemBDO = new BangGiaTheNhuaBDO(); ChuyenDoDTOThanhBDO(bGiaDThiep, itemBDO); return(bangGiaTheNhuaLogic.Sua(itemBDO)); }
public static BangGiaTheNhua DocTheoId(int idBangGia) { var bGiaInNhanhLogic = new BangGiaTheNhuaLogic(); BangGiaTheNhua bGiaInNhanh = new BangGiaTheNhua(); try { var giayBDO = bGiaInNhanhLogic.DocTheoId(idBangGia); //Chuyen ChuyenDoiBDOThanhDTO(giayBDO, bGiaInNhanh); } catch { } return(bGiaInNhanh); }