Ejemplo n.º 1
0
 public IActionResult Story()
 {
     try
     {
         ViewBag.StoryData = _repositry.getStories();
     }
     catch (Exception ex)
     {
         Console.WriteLine("--" + ex);
     }
     return(View());
 }
Ejemplo n.º 2
0
 public IActionResult Index()
 {
     try
     {
         ViewBag.Stories    = _repositry.getStories();
         ViewBag.Articles   = _articles.getArticles();
         ViewBag.Questions  = _questions.getQuestions();
         ViewBag.Users      = _users.GetUsers();
         ViewBag.Volunteers = _volunteer.getVolunteers();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex);
     }
     return(View());
 }