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>()); }
public IEnumerable <ShareModel> GetInfo(ShareQueryModel entity) { var shares = _service.GetInfo(entity); return(shares); }