Exemple #1
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);
        }
Exemple #3
0
        public static List <DanhMucGiay> LayTheoNhaCungCap(string nhaCC)
        {
            var dmGiayLogic = new DanhMucGiayLogic();
            var nguon       = dmGiayLogic.LayTheoNhaCungCap(nhaCC).Select(x => new DanhMucGiay
            {
                ID         = x.ID,
                Ten        = x.Ten,
                NhaCungCap = x.NhaCungCap,
                ThuTu      = (int)x.ThuTu
            }).OrderBy(x => x.ThuTu).ToList();

            return(nguon);
        }
Exemple #4
0
        public static List <NhaCungCapGiay> DanhSachNCC()
        {
            //Sắp xếp theo thứ tự
            var nhaCCLogic = new DanhMucGiayLogic();
            List <NhaCungCapGiay> nguon = null;

            try
            {
                nguon = nhaCCLogic.NhaCungCapS().Select(x => new NhaCungCapGiay {
                    Ten = x
                }).OrderBy(x => x.Ten).ToList();
            }
            catch { }
            return(nguon);
        }
Exemple #5
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);
        }
Exemple #6
0
        public static string Xoa(int idDanhMucGiay)
        {
            DanhMucGiayLogic dMucGiayLogic = new DanhMucGiayLogic();

            return(dMucGiayLogic.Xoa(idDanhMucGiay));
        }