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