Beispiel #1
0
        public AjaxResult Get()
        {
            var _ajaxresult = new AjaxResult();

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


            return(_ajaxresult);
        }
Beispiel #2
0
        public List <Customer> GetAll()
        {
            var customers = customerDL.GetAll();

            return(customers);
        }