public Customer Get(int id) { var customer = customerDL.Get(id); if (customer != null) { return(customer); } else { return(null); } }
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); }
public List <Customer> GetCustomers() { var customerDL = new CustomerDL(); return(customerDL.Get()); }