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

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