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); }
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); }
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); }
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); }
public static string Xoa(int idDanhMucGiay) { DanhMucGiayLogic dMucGiayLogic = new DanhMucGiayLogic(); return(dMucGiayLogic.Xoa(idDanhMucGiay)); }