public IHttpActionResult GetOrganisation(Guid id) { ProjectOrganisation po = repo_.Get(id); if (po == null) return NotFound(); return Ok(po); } // GetOrganisation
protected override Project createProject(ProjectOrganisation org, string name) { var proj = TestHelper.newProject(name); return(repo_.AddProject(org.Id, proj).Where(s => s.Name == proj.Name).Single()); }
protected override StaffMember updateStaff(ProjectOrganisation org, StaffMember staff) { return(repo_.UpdateStaffMember(org.Id, staff).Where(s => s.Name == staff.Name).Single()); }
protected override StaffMember createStaff(ProjectOrganisation org, string name) { var csm = TestHelper.newStaff(name); return(repo_.AddStaffMember(org.Id, csm).Where(s => s.Name == csm.Name).Single()); }