Esempio n. 1
0
 public async Task <IActionResult> Create(CreateReflectionBindingModel createReflectionBindingModel)
 {
     try
     {
         await reflectionService.CreateAsync(createReflectionBindingModel, this.User.Identity.Name);
     }
     catch (Exception e)
     {
         if (e.Message == "The User is either non-existent or is not a student")
         {
             return(this.View("~/Views/Shared/NonExistentStudentPage.cshtml"));
         }
     }
     return(this.RedirectToAction("Index", "Home"));
 }