Beispiel #1
0
        public static string Sua(TuyChonTheNhua item)
        {
            var tuyChonThNhuaLogic = new TuyChonTheNhuaLogic();
            var itemBDO            = new TuyChonTheNhuaBDO();

            ChuyenDoiItemDTOThanhBDO(item, itemBDO);
            return(tuyChonThNhuaLogic.Sua(itemBDO));
        }
Beispiel #2
0
        public static TuyChonTheNhua DocTheoId(int idKhuonEpKim)
        {
            var tuyChonThNhuaLogic = new TuyChonTheNhuaLogic();
            var tuyChonThNhua      = new TuyChonTheNhua();

            try
            {
                var tuyChonThNhuaBDO = tuyChonThNhuaLogic.DocTheoId(idKhuonEpKim);
                //Chuyen
                ChuyenDoiBDOThanhDTO(tuyChonThNhuaBDO, tuyChonThNhua);
            }
            catch {
            }
            return(tuyChonThNhua);
        }
Beispiel #3
0
        //==
        #region Các hàm static
        public static List <TuyChonTheNhua> DocTatCa()
        {
            var tuyChonTheNhuaLogic     = new TuyChonTheNhuaLogic();
            List <TuyChonTheNhua> nguon = null;

            try
            {
                nguon = tuyChonTheNhuaLogic.DocTatCa().Select(x => new TuyChonTheNhua
                {
                    ID  = x.ID,
                    Ten = x.Ten,

                    ThuTu = x.ThuTu
                }).OrderBy(x => x.ThuTu).ToList();
            }
            catch { }
            return(nguon);
        }
Beispiel #4
0
        public static string Xoa(int idGiay)
        {
            var tuyChonThNhuaLogic = new TuyChonTheNhuaLogic();

            return(tuyChonThNhuaLogic.Xoa(idGiay));
        }