Example #1
0
        public IActionResult GetUserOperation([FromRoute] string userOperationId)
        {
            UserAnalyticsOperation userAnalyticsOperation =
                _analyticsService.GetUserAnalyticsOperation(userOperationId);

            if (userAnalyticsOperation == null)
            {
                return(NotFound());
            }

            UserAnalyticsOperationModel model = new UserAnalyticsOperationModel
            {
                Id            = userAnalyticsOperation.Id.ToString(),
                OperationName = userAnalyticsOperation.OperationName,
                Status        = userAnalyticsOperation.Status.ToString(),
                TimeSeriesId  = userAnalyticsOperation.TimeSeriesId
            };

            return(Ok(model));
        }