public IHttpActionResult UpdateUserDetails(StaffMemberData update) { var userName = User.Identity.Name; var user = repo_.UpdateStaffMember(userName, update); return Ok(user); } // UpdateUserDetails
protected override StaffMember updateStaff(ProjectOrganisation org, StaffMember staff) { return(repo_.UpdateStaffMember(org.Id, staff).Where(s => s.Name == staff.Name).Single()); }