public void Delete(int id) { ProjectRole projectrole = _db.ProjectRoles.Find(id); _db.ProjectRoles.Remove(projectrole); _db.SaveChanges(); }
public Project Create(Project project) { _db.Projects.Add(project); _db.SaveChanges(); return(project); }
public Role Create(Role role) { _db.Roles.Add(role); _db.SaveChanges(); return(role); }
public Person Create(Person person) { _db.People.Add(person); _db.SaveChanges(); return(person); }