Exemplo n.º 1
0
 public void Update(Project project)
 {
     var projectToUpdate = FindById(project.Id);
     projectToUpdate.Name = project.Name;
     projectToUpdate.Description = project.Description;
     _context.SaveChanges();
 }
Exemplo n.º 2
0
 public void Update(Project project)
 {
     var projectToUpdate = FindById(project.Id);
     projectToUpdate.tags = project.tags;
     projectToUpdate.description = project.description;
     projectToUpdate.dueDate = project.dueDate;
     projectToUpdate.state = project.state;
     _context.SaveChanges();
 }
Exemplo n.º 3
0
 public void Create(Project project)
 {
     _context.Project.Add(project);
     _context.SaveChanges();
 }