Exemplo n.º 1
0
        //
        // GET: /Foro/

        public ActionResult Index()
        {
            var DebateService = new DebateService();
            var Debates       = DebateService.ObtenerDebate();

            return(View(Debates));
        }
Exemplo n.º 2
0
 public SeedData(DatabaseContext context, IMapper mapper, UserService userService, ProfileService profileService, DebateService debateService, CommentService commentService, GroupService groupService)
 {
     _context        = context;
     _mapper         = mapper;
     _userService    = userService;
     _profileService = profileService;
     _debateService  = debateService;
     _commentService = commentService;
     _groupService   = groupService;
 }
Exemplo n.º 3
0
 public DebateController(DebateService debateService)
 {
     _debateService = debateService;
 }