public IHttpActionResult GetOrganisation(Guid id) {
      ProjectOrganisation po = repo_.Get(id);

      if (po == null)
        return NotFound();

      return Ok(po);
    } // GetOrganisation
Пример #2
0
        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());
        }
Пример #3
0
 protected override StaffMember updateStaff(ProjectOrganisation org, StaffMember staff)
 {
     return(repo_.UpdateStaffMember(org.Id, staff).Where(s => s.Name == staff.Name).Single());
 }
Пример #4
0
        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());
        }