예제 #1
0
        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);
        }
예제 #2
0
 public async Task <ClientInfo> GetUserByID(string id)
 {
     return((await _helper.CallStoredProcedureQuery <ClientInfo>("GetUserByID", new DynamicParameters()
                                                                 .AddParameter("userID", id))).FirstOrDefault());
 }