Пример #1
0
 public ICollection <ShareModel> GetInfo(ShareQueryModel entity)
 {
     if (Convert.ToBoolean(entity.Price))
     {
         return(_repository.GetByPrice(entity.Price, entity.PriceHigher));
     }
     if (entity.AmountHigher)
     {
         return(_repository.GetByAmount(entity.Amount, entity.AmountHigher));
     }
     return(new List <ShareModel>());
 }
Пример #2
0
        public IEnumerable <ShareModel> GetInfo(ShareQueryModel entity)
        {
            var shares = _service.GetInfo(entity);

            return(shares);
        }