Example #1
0
        public async Task <ActionResult> GetMostValuableRobotsAsync([FromBody] RobotMostValuableFilterParamsDto filterParams)
        {
            BuildUserPrincipal();

            filterParams.UserId = ApiUser.Id;

            var robots = await _robotService.GetMostValuableRobotByFilterParamsAsync(filterParams);

            return(Json(JsonResultData.Success(robots.Where(t => t.Id != filterParams.CurrentRobotId))));
        }