/// <summary>
 /// Gets all reasons.
 /// </summary>
 /// <returns></returns>
 public static object GetAllReasons()
 {
     var reasons = new ShortageReasons();
     //reasons.LoadAll();
     reasons.Query.Load();
     return reasons.DefaultView;
 }
コード例 #2
0
        /// <summary>
        /// Gets all reasons.
        /// </summary>
        /// <returns></returns>
        public static object GetAllReasons()
        {
            var reasons = new ShortageReasons();

            //reasons.LoadAll();
            reasons.Query.Load();
            return(reasons.DefaultView);
        }