Example #1
0
 /// <summary>
 /// Get all choised toys in backet and calculated all their price
 /// </summary>
 /// <param name="userId"></param>
 /// <returns></returns>
 public BacketResponce GetBucketList(int userId)
 {
     try
     {
         return(new BacketResponce()
         {
             ToysData = _dbManager.GetBucketListBacketData(userId),
             Price = _dbManager.GetBucketListPrice(userId)
         });
     }
     catch (Exception ex)
     {
         _logger.Error("DataBase error", ex);
         return(null);
     }
 }