protected ModelsControllerBase(IModelsRepository <TModel> modelRepository,
                                IMapper mapper, ILogger <TController> logger)
 {
     ModelsRepository = modelRepository;
     Mapper           = mapper;
     _logger          = logger;
 }
Esempio n. 2
0
        private static IEnumerable <SelectListItem> createModels(IModelsRepository r)
        {
            var list   = new List <SelectListItem>();
            var models = r.Get().GetAwaiter().GetResult();

            foreach (var m in models)
            {
                list.Add(new SelectListItem(m.Data.Name, m.Data.Name));
            }
            return(list);
        }
Esempio n. 3
0
 public DetailsModel(IGenerationsRepository r, IModelsRepository m) : base(r, m)
 {
 }
 public ModelsController(IModelsRepository modelsRepository, ICarsRepository carsRepository)
 {
     _modelsRepository = modelsRepository;
     _carsRepository   = carsRepository;
 }
Esempio n. 5
0
 public DevicesRepository(AppDbContext dbContext, IReservationsRepository reservationsRepository, IModelsRepository modelsRepository)
 {
     _dbContext = dbContext;
     _reservationsRepository = reservationsRepository;
     _modelsRepository       = modelsRepository;
 }
Esempio n. 6
0
 public DevicesController(IDevicesRepository devicesRepository, IReservationsRepository reservationsRepository, IModelsRepository modelsRepository)
 {
     _devicesRepository      = devicesRepository;
     _reservationsRepository = reservationsRepository;
     _modelsRepository       = modelsRepository;
 }
Esempio n. 7
0
 public DetailsModel(IModelsRepository r, IMarksRepository m) : base(r, m)
 {
 }
Esempio n. 8
0
 public DeleteModel(IModelsRepository r, IMarksRepository m) : base(r, m)
 {
 }
 public static UserModel Resolve(this IModelsRepository <UserModel> source, Expression <Func <UserModel, bool> > expression)
 {
     return(Resolve((IUsersRepository)source, expression));
 }
Esempio n. 10
0
 public CreateModel(IModelsRepository r, IMarksRepository m) : base(r, m)
 {
 }
Esempio n. 11
0
 public IndexModel(IGenerationsRepository r, IModelsRepository m) : base(r, m)
 {
 }
Esempio n. 12
0
 protected internal GenerationsPage(IGenerationsRepository r, IModelsRepository m) : base(r)
 {
     PageTitle = "Generations";
     Models    = createModels(m);
 }
Esempio n. 13
0
 public EditModel(IModelsRepository r, IMarksRepository m) : base(r, m)
 {
 }
Esempio n. 14
0
 public EditModel(IGenerationsRepository r, IModelsRepository m) : base(r, m)
 {
 }
 public static CarWorkshopModel Resolve(this IModelsRepository <CarWorkshopModel> source, Expression <Func <CarWorkshopModel, bool> > expression)
 {
     return(Resolve((ICarWorkshopsRepository)source, expression));
 }
Esempio n. 16
0
 public ModelController(IModelsRepository modelsRepository)
 {
     _modelsRepository = modelsRepository;
 }
Esempio n. 17
0
 public ModelController(IModelsRepository modelsRepository, ICarsRepository carsRepository, IWebHostEnvironment webHostEnvironment)
 {
     _modelsRepository   = modelsRepository;
     _carsRepository     = carsRepository;
     _webHostEnvironment = webHostEnvironment;
 }
Esempio n. 18
0
 public CreateModel(IGenerationsRepository r, IModelsRepository m) : base(r, m)
 {
 }
Esempio n. 19
0
 public IndexModel(IModelsRepository r, IMarksRepository m) : base(r, m)
 {
 }