public static string Sua(TuyChonDanhThiep item) { var tuyChonDThiepLogic = new TuyChonDanhThiepLogic(); var itemBDO = new TuyChonDanhThiepBDO(); ChuyenDoiItemDTOThanhBDO(item, itemBDO); return(tuyChonDThiepLogic.Sua(itemBDO)); }
public static TuyChonDanhThiep DocTheoId(int idKhuonEpKim) { var tuyChonDThiepLogic = new TuyChonDanhThiepLogic(); var tuyChonDThiep = new TuyChonDanhThiep(); try { var tuyChonDThiepBDO = tuyChonDThiepLogic.DocTheoId(idKhuonEpKim); //Chuyen ChuyenDoiBDOThanhDTO(tuyChonDThiepBDO, tuyChonDThiep); } catch { } return(tuyChonDThiep); }
//== #region Các hàm static public static List <TuyChonDanhThiep> DocTatCa() { var tuyChonDanhThiepLogic = new TuyChonDanhThiepLogic(); List <TuyChonDanhThiep> nguon = null; try { nguon = tuyChonDanhThiepLogic.DocTatCa().Select(x => new TuyChonDanhThiep { ID = x.ID, Ten = x.Ten, ThuTu = x.ThuTu }).OrderBy(x => x.ThuTu).ToList(); } catch { } return(nguon); }
public static string Xoa(int idGiay) { var tuyChonDThiepLogic = new TuyChonDanhThiepLogic(); return(tuyChonDThiepLogic.Xoa(idGiay)); }