public static ICrudRepository<Movie> GetMovieRepository() { if (movieRepo == null) { movieRepo = new MovieRepository(); } return movieRepo; }
public static ICrudRepository<Orders> GetOrderRepository() { if (orderRepo == null) { orderRepo = new OrderRepository(); } return orderRepo; }
public static ICrudRepository<Genres> GetGenreRepository() { if(genreRepo == null) { genreRepo = new GenreRepository(); } return genreRepo; }
public static IGenreSearch<Movie> GetGenreSearch() { if (movieRepo == null) { movieRepo = new MovieRepository(); } return (IGenreSearch<Movie>)movieRepo; }
public static ISearch<Customer> GetCustomerSearch() { if(customerRepo == null) { customerRepo = new CustomerRepository(); } return (ISearch<Customer>)customerRepo; }
public static ICrudRepository<Customer> GetCustomerRepository() { if (customerRepo == null) { customerRepo = new CustomerRepository(); } return customerRepo; }
public MenuItemController(IMenuItemService menuItemService, IMenuItemRepository menuItemRepository, ICrudRepository<MenuItemType> menuItemTypeRepository, IUnitOfWork<MenuItemContext> menuItemUnitOfWork, ICurrentUser currentUser) { //db = new MenuItemContext(); this._menuItemService = menuItemService; this._menuItemRepository = menuItemRepository; this._menuItemTypeRepository = menuItemTypeRepository; this._menuItemUnitOfWork=menuItemUnitOfWork; this._currentUser = currentUser; }
ICrudRepository<ProjectCategory> _projectCategoryRepository; //= new Repository<Project>(new SJiraContext()); #endregion Fields #region Constructors public ProjectCategoryApiController(ICrudRepository<ProjectCategory> projectCategoryRepository) { try { _projectCategoryRepository = projectCategoryRepository; } catch (Exception) { throw; } }
public DashboardController(IMenuItemService menuItemService, IDashboardService dashboardService, IMenuItemRepository menuItemRepository, IDashboardRepository dashboardRepository, //IDashboardUserRepository dashboardUserRepository, IApplicationUserRepository ApplicationUserRepository, ICrudRepository<SharedWith> sharedWithRepository, ICrudRepository<DashboardType> dashboardTypeRepository, IUnitOfWork<DashboardContext> dashboardUnitOfWork, ICurrentUser currentUser) { //db = new SJiraContext(); this._menuItemService = menuItemService; this._menuItemRepository = menuItemRepository; this._dashboardRepository = dashboardRepository; this._dashboardService = dashboardService; //this._dashboardUserRepository = dashboardUserRepository; this._ApplicationUserRepository = ApplicationUserRepository; this._sharedWithRepository = sharedWithRepository; this._dashboardTypeRepository = dashboardTypeRepository; this._dashboardUnitOfWork = dashboardUnitOfWork; this._currentUser = currentUser; }
public ResolveTree(MockDbContext dbContext, ICrudRepository<MockEntity1> repo1, ICrudRepository<MockEntity2> repo2) { DbContext = dbContext; Repo1 = (DbCrudRepository<MockEntity1>)repo1; Repo2 = (DbCrudRepository<MockEntity2>)repo2; }
public ProductsService(ICrudRepository<Product> productsRepository) { this.productsRepository = productsRepository; }
public CinemaLogic(IRepository repository, ICrudRepository<EntityBase> crudRepository) { _repository = repository; _crudRepository = crudRepository; }
public SessionController(IAuthenticator authenticator, ICrudRepository<IdentityUser> repository) { _authenticator = authenticator; _repository = repository; }
public CrudServiceBase(ICrudRepository <T> crudRepository) { _crudRepository = crudRepository; }
public CrudController(ICrudRepository <TEntity, TModel> repository, IMapper mapper, ILogger logger) { _repository = repository; _mapper = mapper; _logger = logger; }
public TaskService(WeekUtils weekUtils, ICrudRepository <int, Task> repository) { _weekUtils = weekUtils; _repository = repository; }