mirror of
https://github.com/guilhermewerner/gerencia-projetos
synced 2025-06-16 15:05:39 +00:00
Acho q acabou
This commit is contained in:
29
GerenciaProjetos/Controllers/DashboardController.cs
Normal file
29
GerenciaProjetos/Controllers/DashboardController.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user