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); }
public List <Customer> GetAll() { var customers = customerDL.GetAll(); return(customers); }