public ValueContract GetValueBandList(skValueBands ValueBandList) { ValueContract returncontract = new ValueContract(); returncontract.ValueBandList = ValueRepo.GetValueBandList(ValueBandList).ToList(); return(returncontract); }
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); }
public ValueContract GetValueBandList(skValueBands ValueBandList) { return(base.Channel.GetValueBandList(ValueBandList)); }