Ejemplo n.º 1
0
        public async Task <ActionResult <string> > UploadPhoto(int id, [FromForm] IFormFile image)
        {
            var result = await _service.UploadPhotoAsync(id, image, _env.ContentRootPath);

            return(CustomResult(result));
        }