public Customer GetCustomerByID(Guid customerID) { var customerDL = new CustomerDL(); //kiem tra loi trung ma return(customerDL.GetById(customerID)); }
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); }