/// <summary> /// 获取客户状态列表 /// </summary> /// <returns></returns> public JsonResult drpCustomerStateList() { DaCustomerState dal = new DaCustomerState(); IList <CustomerState> states = dal.getList(); var result = new CustomJsonResult(); result.Data = states; return(result); }
/// <summary> /// 获取客户状态列表 /// </summary> /// <returns></returns> public JsonResult CustomerState_getList() { DaCustomerState dal = new DaCustomerState(); IList <CustomerState> states = dal.getList(); var result = new CustomJsonResult(); result.Data = new { total = states.Count, rows = states }; return(result); }