예제 #1
0
        public async Task <IActionResult> CleanVideo([FromBody] CleanVideoViewModel inputParams)
        {
            var id = inputParams.Id;

            if (GetIpInfo(id) == null)
            {
                return(NotFound(NewViewModel <VideoViewModel>()
                                .SetMessage($"Id {id} is not found.")));
            }

            await SetClientVideo(_videoService.CleanVideo(id), id);

            OnlineUserChange();

            return(Ok(NewViewModel <VideoViewModel>()
                      .SetMessage($"Id {id} video is clean.")));
        }