コード例 #1
0
        public bool CapNhat(CaLamViec item)
        {
            CaLamViecDAL dal = new CaLamViecDAL(db);

            if (item != null)
            {
                return(dal.CapNhat(item));
            }
            else
            {
                return(false);
            }
        }
コード例 #2
0
        public bool Xoa(CaLamViec item)
        {
            CaLamViecDAL dal = new CaLamViecDAL(db);

            try
            {
                if (item != null)
                {
                    return(dal.Xoa(item));
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
コード例 #3
0
        public CaLamViec TimKiemTheoMa(string id)
        {
            CaLamViecDAL dal = new CaLamViecDAL(db);

            try
            {
                if (!string.IsNullOrEmpty(id))
                {
                    return(dal.TimKiemTheoMa(id));
                }
                else
                {
                    return(null);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
コード例 #4
0
        public IEnumerable <CaLamViec> TimKiemGanDungTheoTen(string thongTin)
        {
            CaLamViecDAL dal = new CaLamViecDAL(db);

            return(dal.TimKiemGanDungTheoTen(thongTin));
        }
コード例 #5
0
        public IEnumerable <CaLamViec> LayTatCa()
        {
            CaLamViecDAL dal = new CaLamViecDAL(db);

            return(dal.LayTatCa());
        }