This commit is contained in:
Guilherme
2019-09-24 10:46:39 -03:00
parent 2802ef55b1
commit 34ab942f91
57 changed files with 1044 additions and 896 deletions

View File

@ -97,16 +97,12 @@ namespace GerenciaProjetos.Controllers
{
if (ModelState.IsValid)
{
/*
ctx.Entry(bug).Property(r => r.DesenvolvedorId).IsModified = true;
ctx.Entry(bug).Property(r => r.RequisitoId).IsModified = true;
ctx.Entry(bug).Property(r => r.CriadorId).IsModified = true;
ctx.Entry(bug).Property(r => r.FoiResolvido).IsModified = true;
ctx.Entry(bug).Property(r => r.Descricao).IsModified = true;
ctx.Entry(bug).Property(r => r.Prioridade).IsModified = true;
*/
bug.DataCadastro = DateTime.Now;
ctx.Bugs.Update(bug);
ctx.SaveChanges();
return RedirectToAction("Index", "Home");

View File

@ -85,6 +85,8 @@ namespace GerenciaProjetos.Controllers
{
if (ModelState.IsValid)
{
ctx.Entry(req).Property(r => r.EFuncional).IsModified = true;
ctx.Entry(req).Property(r => r.DataEntrega).IsModified = true;
ctx.Entry(req).Property(r => r.Descricao).IsModified = true;
ctx.Entry(req).Property(r => r.Observacoes).IsModified = true;
ctx.Entry(req).Property(r => r.ProjetoId).IsModified = true;