コード例 #1
0
        public async Task <IActionResult> AddVideo([FromForm] DocumentForCreationResponse documentForCreationResponse, int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var asset = await _service.AddVideoAsync(documentForCreationResponse, id);

            return(Ok(asset));
        }