Beispiel #1
0
        public UserProduct GetProductById(int id)
        {
            var product = _BlService.GetById(id);
            var res     = MapTools.MapToUserProduct(product);

            return(res);
        }
Beispiel #2
0
        public ICollection <UserProduct> GetByStone(int count)
        {
            var product = _BlService.GetByStone(count);
            List <UserProduct> userProducts = new List <UserProduct>();

            foreach (var item in product)
            {
                userProducts.Add(MapTools.MapToUserProduct(item));
            }
            return(userProducts);
        }