Пример #1
0
 //Chuyển đổi
 private static void ChuyenDoiDMGiayBDOThanhDTO(DanhMucGiayBDO dMucGiayBDO, DanhMucGiay dMucGiayDTO)
 {
     dMucGiayDTO.ID         = dMucGiayBDO.ID;
     dMucGiayDTO.Ten        = dMucGiayBDO.Ten;
     dMucGiayDTO.NhaCungCap = dMucGiayBDO.NhaCungCap;
     dMucGiayDTO.ThuTu      = dMucGiayBDO.ThuTu;
 }
Пример #2
0
        public static string Sua(DanhMucGiay item)
        {
            DanhMucGiayLogic dMucGiayLogic = new DanhMucGiayLogic();
            var itemBDO = new DanhMucGiayBDO();

            ChuyenDoiDMGiayDTOThanhBDO(item, itemBDO);
            return(dMucGiayLogic.Sua(itemBDO));
        }
        public static string Sua(DanhMucGiay item)
        {
            DanhMucGiayLogic markUpLNGLogic = new DanhMucGiayLogic();
            var itemBDO = new DanhMucGiayBDO();

            ChuyenDoiGiayDTOThanhBDO(item, itemBDO);
            markUpLNGLogic.Sua(itemBDO);
        }
Пример #4
0
        public static DanhMucGiay DocTheoId(int idDanhMucGiay)
        {
            var         dMucGiayLogic = new DanhMucGiayLogic();
            DanhMucGiay dMucGiay      = new DanhMucGiay();

            try
            {
                var dMucGiayBDO = dMucGiayLogic.LayTheoId(idDanhMucGiay);
                //Chuyen
                ChuyenDoiDMGiayBDOThanhDTO(dMucGiayBDO, dMucGiay);
            }
            catch
            {
            }
            return(dMucGiay);
        }