mirror of
https://github.com/guilhermewerner/gerencia-projetos
synced 2025-06-16 15:05:39 +00:00
Requisitos Controller
This commit is contained in:
@ -16,8 +16,6 @@ namespace GerenciaProjetos.Controllers
|
||||
public ProjetosController(GerenciaContext ctx)
|
||||
{
|
||||
this.ctx = ctx;
|
||||
|
||||
Desenvolvedor dev = ctx.Desenvolvedores.Find(1);
|
||||
}
|
||||
|
||||
public IActionResult Index()
|
||||
@ -29,6 +27,8 @@ namespace GerenciaProjetos.Controllers
|
||||
|
||||
public IActionResult New()
|
||||
{
|
||||
ViewData["Title"] = "Novo";
|
||||
|
||||
return View("Form");
|
||||
}
|
||||
|
||||
@ -50,6 +50,8 @@ namespace GerenciaProjetos.Controllers
|
||||
|
||||
public IActionResult Edit(int id)
|
||||
{
|
||||
ViewData["Title"] = "Editar";
|
||||
|
||||
Projeto proj = ctx.Projetos.Find(id);
|
||||
|
||||
if (proj != null)
|
||||
|
Reference in New Issue
Block a user