Beispiel #1
0
        public async Task <IActionResult> AddServerAssetAsync([FromBody] ServerAssetAddDTO serverAssetAddDTO)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var result = await _service.AddServerAssetAsync(serverAssetAddDTO);

            return(Ok(result));
        }