public IActionResult Index(ProgramCodeQuestionViewModel model)
 {
     if (model.File is null)
     {
         model.AlertText = "Please upload a file before submitting.";
         return(View(model));
     }
     int maxSize        = (int)Math.Pow(2, 15);
     int extensionIndex = model.File.FileName.LastIndexOf('.');
     var extesion       = (extensionIndex >= 0) ? model.File.FileName[(extensionIndex + 1)..].ToLower() : null;
        public IActionResult Index(Guid id)
        {
            var question = questionRepository.PickById(id);
            var model    = new ProgramCodeQuestionViewModel()
            {
                Id   = question.Id,
                Text = question.Text
            };

            return(View(model));
        }
        public IActionResult Index(Guid id)
        {
            _logger.LogInformation($"Recieved GUID: {id}");
            var question = questionRepository.PickById(id);
            var model    = new ProgramCodeQuestionViewModel()
            {
                Id   = question.Id,
                Text = question.Text
            };

            return(View(model));
        }