// // GET: /Foro/ public ActionResult Index() { var DebateService = new DebateService(); var Debates = DebateService.ObtenerDebate(); return(View(Debates)); }
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; }
public DebateController(DebateService debateService) { _debateService = debateService; }