public async Task <ActionResult> CreateTest(SimTest simtest) { try { await _apiHandler.CreateTestAsync(simtest); Session.Message = new Message() { CssClassName = "alert-sucess", Title = "Success!", Messages = "Test successfully created." }; return(View()); } catch { Session.Message = new Message() { CssClassName = "alert-error", Title = "Error!", Messages = "Operation Failed." }; return(View()); } }