Esempio n. 1
0
        public async Task <IActionResult> UploadDrinkImage(int id)
        {
            var httpRequest = Request.Form;
            var image       = httpRequest.Files["image"];

            var result = await _drinkService.UploadDrinkImage(id, image);

            return(new OkObjectResult(ApiResponse.Create(result)));
        }