/// <summary> /// Get the user profile based on the user id /// </summary> /// <param name="userId">user id</param> /// <returns>user profile</returns> public UserProfileModel GetUser(int userId) { var userProfile = userReadRepository.GetUser(userId); var userProfileModel = userProfileMapper.EntityToModel(userProfile); return(userProfileModel); }