private string GetEmail(int UserId) { string email = string.Empty; Users objusr = new Users(); objusr.UserId = UserId; UserRegistration objUserReg = new UserRegistration(); objUserReg.Users = objusr; object[] objparam = { objUserReg }; UserInfoResource objinfo = new UserInfoResource(); objinfo.GetUserDetails(objparam); if (objUserReg.Users != null) email = objUserReg.Users.Email; return email; }
/// <summary> /// Method to get user details. /// </summary> /// <param name="userId">Userid</param> /// <returns>UserRegistration entity containing user details.</returns> private UserRegistration GetUserDetails(int userId) { Users objFromUser = new Users(); objFromUser.UserId = userId; UserRegistration objUserReg = new UserRegistration(); objUserReg.Users = objFromUser; object[] objparam = { objUserReg }; UserInfoResource objFromUserInfo = new UserInfoResource(); objFromUserInfo.GetUserDetails(objparam); return objUserReg; }
// public void GetUserDetails(UserRegistration _objUserRegistration) { UserInfoResource objUser = new UserInfoResource(); object[] param = { _objUserRegistration }; objUser.GetUserDetails(param); }