public Nurse GetNurseById(long id) { var mNurse = nurseRepository.GetNurseById(id); if (mNurse != null && mNurse.id > 0) { mNurse.user = userRepository.GetUserById(mNurse.id); var nurseSpecialties = nurseRepository.GetNurseSpecialtiesById(mNurse.id); if (nurseSpecialties != null) { mNurse.nurseSpecialties = nurseSpecialties; } } return(mNurse); }