Acho q acabou

This commit is contained in:
GuiNerd
2019-11-30 15:10:33 -03:00
parent cc389221db
commit b98436187f
39 changed files with 924 additions and 1395 deletions

View File

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using GerenciaProjetos.Data;
using Microsoft.AspNetCore.Mvc;
namespace GerenciaProjetos.Controllers
{
public class DashboardController : Controller
{
private GerenciaContext ctx;
public DashboardController(GerenciaContext ctx)
{
this.ctx = ctx;
}
public IActionResult Index()
{
ViewBag.Desenvolvedores = ctx.Desenvolvedores;
ViewBag.Projetos = ctx.Projetos;
ViewBag.Requisitos = ctx.Requisitos;
ViewBag.Bugs = ctx.Bugs;
return View();
}
}
}