public static List <Brigade> getBrigades() { var kernel = new StandardKernel(new NinjectRegistrations()); repository = kernel.Get <IBrigadeRepository>(); List <Brigade> brigades = repository.GetAll(); return(brigades); }
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(); }
public HomeController(IFlightRepository flightRepository, ICityRepository cityRepository, ITeamEmployeeRepository teamEmployeeRepository, ITeamRepository teamRepository, IBrigadeRepository brigadeRepository) { _flightRepository = flightRepository; _cityRepository = cityRepository; _teamEmployeeRepository = teamEmployeeRepository; _teamRepository = teamRepository; _brigadeRepository = brigadeRepository; }
public RequestController(IRequestRepositiry requestRepositiry, IBrigadeRepository brigadeRepository) { _requestRepositiry = requestRepositiry; _brigadeRepository = brigadeRepository; }
public ExtNetController(IBrigadeRepository brigadeRepository, IRequestRepository requestRepository) { this.brigadeRepository = brigadeRepository; this.requestRepository = requestRepository; }
public BrigadeController(IBrigadeRepository brigadeRepository) { _brigadeRepository = brigadeRepository; }