Exemplo n.º 1
0
        public async Task <ActionResult> Uploads([FromForm] IFormFile file)
        {
            StreamReader reader      = new StreamReader(file.OpenReadStream());
            var          checkUpload = await _librarymanager.AddBorrowers(reader);

            if (checkUpload == 0)
            {
                return(NotFound());
            }
            return(Ok());
        }