Example #1
0
 public void Update(Project project)
 {
     var projectToUpdate = FindById(project.Id);
     projectToUpdate.Name = project.Name;
     projectToUpdate.Description = project.Description;
     _context.SaveChanges();
 }
Example #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();
 }
Example #3
0
 public void Create(Project project)
 {
     _context.Project.Add(project);
     _context.SaveChanges();
 }