Beispiel #1
0
        public Customer GetCustomerByID(Guid customerID)
        {
            var customerDL = new CustomerDL();

            //kiem tra loi trung ma

            return(customerDL.GetById(customerID));
        }
Beispiel #2
0
        public AjaxResult GetById(Guid id)
        {
            var _ajaxresult = new AjaxResult();

            try
            {
                _ajaxresult.Data = db.GetById(id);
            }
            catch (Exception ex)
            {
                _ajaxresult.Data      = ex;
                _ajaxresult.Successed = false;
                _ajaxresult.Message   = "";
            }

            return(_ajaxresult);
        }