public List <Reason> GetAllReasons() { List <Reason> _lsReturn = new List <Reason>(); _lsReturn = cRtnreasons.ReasonsAll(); return(_lsReturn); }
/// <summary> /// this method is for Get All Reasons. /// </summary> /// <returns> /// Return list of Reasons. /// </returns> public List <Reason> GetReasons() { List <Reason> reasonList = new List <Reason>(); try { reasonList = cRtnreasons.ReasonsAll(); } catch (Exception) { } return(reasonList); }
public static List <String> SerachReason(string prefixText, int count) { cmdReasons _cresons = new cmdReasons(); List <String> _lsRetutn = new List <string>(); int i = 0; var lsTrackingTbl = _cresons.ReasonsAll(); foreach (var TrackItm in lsTrackingTbl) { if (i < 25) { if (TrackItm.Reason1.Contains(prefixText)) { _lsRetutn.Add(TrackItm.Reason1); } i++; } else { break; } } return(_lsRetutn); }
public List <Reason> ReasonsAll() { return(_cReasons.ReasonsAll()); }