public async Task <IEnumerable <CharacterFull> > GetUserCharacters(string userID) { var res = await dbHelper.CallStoredProcedureQuery <CharacterFull>("GetUserCharacters", new DynamicParameters().AddParameter("userID", userID)); foreach (var item in res) { item.userID = userID; } return(res); }
public async Task <ClientInfo> GetUserByID(string id) { return((await _helper.CallStoredProcedureQuery <ClientInfo>("GetUserByID", new DynamicParameters() .AddParameter("userID", id))).FirstOrDefault()); }