public UserProduct GetProductById(int id) { var product = _BlService.GetById(id); var res = MapTools.MapToUserProduct(product); return(res); }
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); }