/// <summary> /// 查询矿机总览 /// </summary> /// <param name="modelGet"></param> /// <returns></returns> public IHttpActionResult QueryUserCloudMinerOverview(UserCloudMinerModelGet modelGet) { DataTable dt = _userCloudMinerDal.QueryUserCloudMinerOverview(modelGet.UserId); IList <UserCloudMinerOverviewModelResult> userCloudMinerModelResults = ModelConvertHelper <UserCloudMinerOverviewModelResult> .ConvertToModel(dt); return(Json(new ResultDataModel <UserCloudMinerOverviewModelResult>() { Data = userCloudMinerModelResults.FirstOrDefault() })); }
/// <summary> /// 查询矿机列表 /// </summary> /// <param name="modelGet"></param> /// <returns></returns> public IHttpActionResult QueryUserCloudMiner(UserCloudMinerModelGet modelGet) { DataTable dt = _userCloudMinerDal.QueryUserCloudMiner(modelGet.UserId); IList <UserCloudMinerModelResult> userCloudMinerModelResults = ModelConvertHelper <UserCloudMinerModelResult> .ConvertToModel(dt); return(Json(new ResultDataModel <IList <UserCloudMinerModelResult> >() { Data = userCloudMinerModelResults })); }