Exemplo n.º 1
0
        public async Task <IActionResult> AddPhotoForAsset([FromForm] AssetPhotoDto assetPhotoDto)
        {
            var result = await _photoService.AddPhotoForAsset(assetPhotoDto);

            if (result.IsSuccessful)
            {
                return(Ok(result.Result));
            }

            //return CreatedAtAction("GetPhoto", new { id = photo.Id }, photo);
            return(BadRequest(result.Message));
        }