public IHttpActionResult UpdateUserDetails(StaffMemberData update) {
      var userName = User.Identity.Name;

      var user = repo_.UpdateStaffMember(userName, update);
      
      return Ok(user);
    } // UpdateUserDetails
Exemplo n.º 2
0
 protected override StaffMember updateStaff(ProjectOrganisation org, StaffMember staff)
 {
     return(repo_.UpdateStaffMember(org.Id, staff).Where(s => s.Name == staff.Name).Single());
 }