public static string Sua(YeuCauTinhGiaIn item)
        {
            var tinhGiaInLogic = new YeuCauTinhGiaInLogic();
            var itemBDO        = new YeuCauTinhGiaInBDO();

            ChuyenDoiGiayDTOThanhBDO(item, itemBDO);
            return(tinhGiaInLogic.Sua(itemBDO));
        }
        public static List <YeuCauTinhGiaIn> DocTatCaSX_KhachHang(ChieuSapXepS chieuSapXep)
        {
            var nguon = YeuCauTinhGiaIn.DocTatCa().OrderBy(x => x.HoTen);

            if (chieuSapXep == ChieuSapXepS.Descending)
            {
                nguon = YeuCauTinhGiaIn.DocTatCa().OrderByDescending(x => x.HoTen);
            }

            return(nguon.ToList());
        }
 private static void ChuyenDoiGiayDTOThanhBDO(YeuCauTinhGiaIn tinhGia, YeuCauTinhGiaInBDO tinhGiaBDO)
 {
     tinhGiaBDO.ID              = tinhGia.ID;
     tinhGiaBDO.IdNguoiDung     = tinhGia.IdNguoiDung;
     tinhGiaBDO.NgayYeuCau      = tinhGia.NgayYeuCau;
     tinhGiaBDO.HoTen           = tinhGia.HoTen;
     tinhGiaBDO.CongTy          = tinhGia.CongTy;
     tinhGiaBDO.SoDienThoai     = tinhGia.SoDienThoai;
     tinhGiaBDO.Email           = tinhGia.Email;
     tinhGiaBDO.ThamChieuTicket = tinhGia.ThamChieuTicket;
     tinhGiaBDO.NoiDung         = tinhGia.NoiDung;
     tinhGiaBDO.PhanChoNhanVien = tinhGia.PhanChoNhanVien;
     tinhGiaBDO.TinhTrang       = tinhGia.TinhTrang;
 }
        public static YeuCauTinhGiaIn DocTheoId(int idTinhGia)
        {
            var tinhGiaInLogic = new YeuCauTinhGiaInLogic();
            var tinhGia        = new YeuCauTinhGiaIn();

            try
            {
                var giayBDO = tinhGiaInLogic.DocTheoId(idTinhGia);
                //Chuyen
                ChuyenDoiGiayBDOThanhDTO(giayBDO, tinhGia);
            }
            catch {
            }
            return(tinhGia);
        }