Exemple #1
0
        public async Task <IActionResult> DeleteAsync(
            string filename)
        {
            var result = await _uploadService.DeleteAsync(UserGuid, filename);

            return(result switch
            {
                ResultCode.Ok => Ok(),
                ResultCode.NotFound => BadRequest(),
                ResultCode.Unauthorized => Unauthorized(),
                _ => BadRequest()
            });