protected ModelsControllerBase(IModelsRepository <TModel> modelRepository, IMapper mapper, ILogger <TController> logger) { ModelsRepository = modelRepository; Mapper = mapper; _logger = logger; }
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); }
public DetailsModel(IGenerationsRepository r, IModelsRepository m) : base(r, m) { }
public ModelsController(IModelsRepository modelsRepository, ICarsRepository carsRepository) { _modelsRepository = modelsRepository; _carsRepository = carsRepository; }
public DevicesRepository(AppDbContext dbContext, IReservationsRepository reservationsRepository, IModelsRepository modelsRepository) { _dbContext = dbContext; _reservationsRepository = reservationsRepository; _modelsRepository = modelsRepository; }
public DevicesController(IDevicesRepository devicesRepository, IReservationsRepository reservationsRepository, IModelsRepository modelsRepository) { _devicesRepository = devicesRepository; _reservationsRepository = reservationsRepository; _modelsRepository = modelsRepository; }
public DetailsModel(IModelsRepository r, IMarksRepository m) : base(r, m) { }
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)); }
public CreateModel(IModelsRepository r, IMarksRepository m) : base(r, m) { }
public IndexModel(IGenerationsRepository r, IModelsRepository m) : base(r, m) { }
protected internal GenerationsPage(IGenerationsRepository r, IModelsRepository m) : base(r) { PageTitle = "Generations"; Models = createModels(m); }
public EditModel(IModelsRepository r, IMarksRepository m) : base(r, m) { }
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)); }
public ModelController(IModelsRepository modelsRepository) { _modelsRepository = modelsRepository; }
public ModelController(IModelsRepository modelsRepository, ICarsRepository carsRepository, IWebHostEnvironment webHostEnvironment) { _modelsRepository = modelsRepository; _carsRepository = carsRepository; _webHostEnvironment = webHostEnvironment; }
public CreateModel(IGenerationsRepository r, IModelsRepository m) : base(r, m) { }
public IndexModel(IModelsRepository r, IMarksRepository m) : base(r, m) { }