Exemplo n.º 1
0
        public async Task <IActionResult> DeleteFile(int?fileId)
        {
            bool fileExists = await uploadRepository.FileExists(fileId);

            if (fileId == null || !fileExists)
            {
                return(NotFound());
            }

            await uploadRepository.DeleteFile(fileId);

            return(NoContent());
        }