public async Task <UserBE> FindByIdAsync(string userIdString, CancellationToken token = default(CancellationToken)) { try { var user = await _data.GetUserById(userIdString); return(user); } catch (Exception ex) { _logError.Log(ex); return(null); } }
/// <summary> /// Get User By Id /// </summary> /// <param name="userID">User Id</param> /// <returns>User</returns> public User GetUserById(int userID) { return(userContext.GetUserById(userID)); }