public IActionResult TeacherSubmissions(string id) { try { string urlEnc = Encryption.SymmetricDecrypt(id); Guid decId = Guid.Parse(urlEnc); var submissionList = _submissionService.GetSubmissionsForTeacher(decId); return(View(submissionList)); } catch (Exception ex) { _logger.LogError(ex.Message + " ip: " + GetIpAddress() + " | Timestamp: " + DateTime.Now + " | Email: " + User.Identity.Name); return(RedirectToAction("Error", "Home")); } }