Ejemplo n.º 1
0
        public ValueContract GetValueBandList(skValueBands ValueBandList)
        {
            ValueContract returncontract = new ValueContract();

            returncontract.ValueBandList = ValueRepo.GetValueBandList(ValueBandList).ToList();

            return(returncontract);
        }
Ejemplo n.º 2
0
        public IEnumerable <skValueBands> GetValueBandList(skValueBands ValueBandObj)
        {
            int tempval;
            int?ConvertedID = int.TryParse(ValueBandObj.ID.ToString(), out tempval) ? tempval : (int?)null;

            var query = from VB in DB.dtValueBands
                        where VB.ivID.Equals(ConvertedID == 0 ? VB.ivID : ValueBandObj.ID)
                        select new skValueBands
            {
                Description = VB.Description,
                HighValue   = VB.HighValue,
                ID          = VB.ivID,
                LowValue    = VB.LowValue
            };

            return(query);
        }
Ejemplo n.º 3
0
 public ValueContract GetValueBandList(skValueBands ValueBandList)
 {
     return(base.Channel.GetValueBandList(ValueBandList));
 }