示例#1
0
 public ItemsService(IItemsRepository itemRepo, IGendersRepository gendersContext, IFeaturesRepository featuresContext, ICategoriesRepository categoryContext)
 {
     _itemRepo        = itemRepo;
     _gendersContext  = gendersContext;
     _featuresContext = featuresContext;
     _categoryContext = categoryContext;
 }
示例#2
0
 public AdministratorController(IAdminRepository adminRepository, IBreedsRepository breedRepository,
                                IGendersRepository gendersRepository, IProfileImageRepository imageRepository)
 {
     this.adminRepository   = adminRepository;
     this.breedRepository   = breedRepository;
     this.gendersRepository = gendersRepository;
     this.imageRepository   = imageRepository;
 }
示例#3
0
 public CartsController(CartContext context, ItemsContext Goodcontext, UserManager <IdentityUser> userManager,
                        ApplicationDbContext context7, ICategoriesRepository categoryContext,
                        IGendersRepository gendersContext, IFeaturesRepository featuresContext, ItemsContext contextIt)
 {
     _itemcontext     = Goodcontext;
     _context         = context;
     _context7        = context7;
     this.userManager = userManager;
     _categoryContext = categoryContext;
     _gendersContext  = gendersContext;
     _featuresContext = featuresContext;
     _contextIt       = contextIt;
 }
示例#4
0
        //public event PropertyChangedEventHandler PropertyChanged = delegate { };

        public GenderListViewModel(IGendersRepository repo)
        {
            _repo = repo;
            //if (DesignerProperties.GetIsInDesignMode(
            //	new System.Windows.DependencyObject())) return;

            //Genders = new ObservableCollection<Gender>(_repo.GetGendersAsync().Result);
            DeleteCommand = new RelayCommand(OnDelete, CanDelete);

            AddGenderCommand   = new RelayCommand(OnAddGender);
            EditGenderCommand  = new RelayCommand <Gender>(OnEditGender);
            ClearSearchCommand = new RelayCommand(OnClearSearch);
        }
示例#5
0
 public ItemsController(ItemsContext context, ItemsService contextSearch, ICategoriesRepository categoryContext, IWebHostEnvironment hostEnvironment, IGendersRepository gendersContext, IFeaturesRepository featuresContext,
                        ICommentsRepository commentsContext, CommentsContext comContext, UserManager <IdentityUser> userManager)
 {
     _categoryContext = categoryContext;
     _context         = context;
     //_context2 = context2;
     _commentsContext   = commentsContext;
     _gendersContext    = gendersContext;
     _featuresContext   = featuresContext;
     webHostEnvironment = hostEnvironment;
     _comContext        = comContext;
     _contextSearch     = contextSearch;
     this.userManager   = userManager;
 }
 public AdoptionController(
     IConfiguration configuration,
     IAdminRepository adminRepository,
     IBreedsRepository breedRepository,
     IGendersRepository gendersRepository,
     IAppoinmentRepository appoinmentRepository,
     UserManager <ApplicationUser> userManager,
     IPersonRepository personRepository)
 {
     Configuration             = configuration;
     this.adminRepository      = adminRepository;
     this.breedRepository      = breedRepository;
     this.gendersRepository    = gendersRepository;
     this.appoinmentRepository = appoinmentRepository;
     _userManager          = userManager;
     this.personRepository = personRepository;
 }
示例#7
0
 public DataManager(IBlogCommentAnswersRepository blogCommentAnswers, IBlogCommentsRepository blogComments,
                    IBlogRepository blog, IClientServicesRepository clientServices, IClientsRepository clients,
                    IGendersRepository genders, IServiceCategoriesRepository serviceCategories, IServicesRepository services,
                    ITestimonialsRepository testimonials, ITrainerCategoriesRepository trainerCategories,
                    ITrainersRepository trainers)
 {
     BlogCommentAnswers = blogCommentAnswers;
     BlogComments       = blogComments;
     Blog              = blog;
     ClientServices    = clientServices;
     Clients           = clients;
     Genders           = genders;
     ServiceCategories = serviceCategories;
     Services          = services;
     Testimonials      = testimonials;
     TrainerCategories = trainerCategories;
     Trainers          = trainers;
 }
示例#8
0
 public GendersBusinessWorkflow(IGendersRepository gendersRepository, IGenderMapper genderMapper)
 {
     GendersRepository = gendersRepository;
     GenderMapper      = genderMapper;
 }
 public GendersBusinessWorkflow(IGendersRepository gendersRepository, IGenderMapper genderMapper)
 {
     GendersRepository = gendersRepository;
     GenderMapper = genderMapper;
 }
示例#10
0
 public GendersService(IGendersRepository genRepo)
 {
     _genRepo = genRepo;
 }
示例#11
0
 public GenderFormViewModel(IGendersRepository repo)
 {
     _repo         = repo;
     CancelCommand = new RelayCommand(OnCancel);
     SaveCommand   = new RelayCommand(OnSave, CanSave);
 }