Beispiel #1
0
 static NewsManage()
 {
     _newsDal      = DependencyResolver.Current.GetService <INewsDal>();
     _newsTypeDal  = DependencyResolver.Current.GetService <INewsTypeDal>();
     _newsTypeList = _newsTypeDal.QueryAll();
 }
 public NewsTypesController()
 {
     _newsTypeDal = DependencyResolver.Current.GetService <INewsTypeDal>();
 }