Пример #1
0
        public Customer Get(int id)
        {
            var customer = customerDL.Get(id);

            if (customer != null)
            {
                return(customer);
            }
            else
            {
                return(null);
            }
        }
Пример #2
0
        public AjaxResult Get(int pageIndex, int pageSize)
        {
            var _ajaxresult = new AjaxResult();

            try
            {
                _ajaxresult.Data = db.Get(pageIndex, pageSize);
            }
            catch (Exception ex)
            {
                _ajaxresult.Data      = ex;
                _ajaxresult.Successed = false;
                _ajaxresult.Message   = "Hệ thông đang lỗi!";
            }


            return(_ajaxresult);
        }
Пример #3
0
        public List <Customer> GetCustomers()
        {
            var customerDL = new CustomerDL();

            return(customerDL.Get());
        }