コード例 #1
0
        public static List <Brigade> getBrigades()
        {
            var kernel = new StandardKernel(new NinjectRegistrations());

            repository = kernel.Get <IBrigadeRepository>();
            List <Brigade> brigades = repository.GetAll();

            return(brigades);
        }
コード例 #2
0
 public FlightController(IFlightRepository flightRepository, ICityRepository cityRepository,
                         IFlightStatusRepository flightStatusRepository, IBrigadeRepository brigadeRepository)
 {
     _flightRepository       = flightRepository;
     _cityRepository         = cityRepository;
     _flightStatusRepository = flightStatusRepository;
     _brigadeRepository      = brigadeRepository;
     ViewBag.FlightTo        = _cityRepository.Cities.ToList();
     ViewBag.FlightStatus    = _flightStatusRepository.FlightStatuses.ToList();
 }
コード例 #3
0
 public HomeController(IFlightRepository flightRepository, ICityRepository cityRepository,
                       ITeamEmployeeRepository teamEmployeeRepository, ITeamRepository teamRepository,
                       IBrigadeRepository brigadeRepository)
 {
     _flightRepository       = flightRepository;
     _cityRepository         = cityRepository;
     _teamEmployeeRepository = teamEmployeeRepository;
     _teamRepository         = teamRepository;
     _brigadeRepository      = brigadeRepository;
 }
コード例 #4
0
 public RequestController(IRequestRepositiry requestRepositiry, IBrigadeRepository brigadeRepository)
 {
     _requestRepositiry = requestRepositiry;
     _brigadeRepository = brigadeRepository;
 }
コード例 #5
0
 public ExtNetController(IBrigadeRepository brigadeRepository, IRequestRepository requestRepository)
 {
     this.brigadeRepository = brigadeRepository;
     this.requestRepository = requestRepository;
 }
コード例 #6
0
ファイル: BrigadeController.cs プロジェクト: mtv06/ADO.NET
 public BrigadeController(IBrigadeRepository brigadeRepository)
 {
     _brigadeRepository = brigadeRepository;
 }