DigipostClientLibWebapp.Controllers.SendController.IsFileSelected C# (CSharp) Method

IsFileSelected() private method

private IsFileSelected ( ) : bool
return bool
        private bool IsFileSelected()
        {
            var hasError = false;
            if (Request.Files == null || Request.Files.Count < 1)
            {
                ModelState.AddModelError("ErrorMessage", "Please select a file to send.");
                hasError = true;
            }

            return hasError;
        }       
    }