Example #1
0
        public async Task <IActionResult> AddCloudAssetAsync([FromBody] CloudAssetAddDTO cloudAssetAddDTO)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var result = await _service.AddCloudAssetAsync(cloudAssetAddDTO);

            return(Ok(result));
        }