//public async Task<List<UserScoreBand>> GetUserDetail(string userId)
        //{
        //    var spParams = new
        //    {
        //        UserId = userId
        //    };
        //    var result = await _dbRepository.QueryAsync<UserScoreBand>("GetUserDetail", spParams, CommandType.StoredProcedure);
        //    return result.ToList();
        //}
        public async Task <int> InsertUserScoreBand(UserScoreBand userScoreBand)
        {
            var spParams = new
            {
                UserId   = userScoreBand.UserId,
                ScoreIds = userScoreBand.ScoreList
            };
            var result = await _dbRepository.ExecuteAsync("UserScoresInsert", spParams, CommandType.StoredProcedure);

            return(result);
        }
Example #2
0
        public async Task <bool> InsertUserScoreBand(UserScoreBandModel userScoreBandViewModel)
        {
            var userBand = new UserScoreBand()
            {
                UserId    = userScoreBandViewModel.UserId,
                ScoreList = userScoreBandViewModel.ScoreList
            };
            var result = await _userService.InsertUserScoreBand(userBand);

            return(result > 0);
        }
Example #3
0
 public async Task <int> InsertUserScoreBand(UserScoreBand userScoreBand)
 {
     return(await _userRespository.InsertUserScoreBand(userScoreBand));
 }