Example #1
0
        public IActionResult UploadGamePhoto()
        {
            var fileUploadHelper = new FileUploadHelper();
            var file             = fileUploadHelper.GetFileUploadContent(Request.ContentType, Request.Body);

            var newGamePhotoId = _repo.AddPhoto(file);

            return(Ok(newGamePhotoId));
        }