コード例 #1
0
ファイル: Klasservice.cs プロジェクト: landerarnoys/RekenApp
 public Klasservice(IUOW uow, IGenericRepository<Klas> KlasRepository,  IGenericRepository<LeerkrachtSchoolKlas> lskRepos, IKlasRepository repository)
 {
     this.uow = uow;
     this.KlasRepository = KlasRepository;
     this.klasrepository = repository;
     this.lskRepos = lskRepos;
 }
コード例 #2
0
        public TranslationsController(ILogger logger, IUOW uow)
        {
            _logger = logger;
            _logger.Debug("InstanceId: " + _instanceId);

            _uow = uow;
        }
コード例 #3
0
 public Superuserservice(IUOW uow, IGenericRepository<School> ScholenRepository,
     ISchoolRepository scholen2Repository)
 {
     this.uow = uow;
     this.SchoolRepository = ScholenRepository;
     this.userRepository = scholen2Repository;
 }
コード例 #4
0
 public NominatieService(TFContext context, IGenericRepository<Award> repoAward, INominatieRepository repoNominatie, IGenericRepository<JuryLid> repoJuryLid ,
     IJuryKeuzeRepository repoJuryKeuze, IUOW uow, INominatieEngine engNominatie)
 {
     this.context = context;
     this.repoAward = repoAward;
     this.repoNominatie = repoNominatie;
     this.repoJuryLid = repoJuryLid;
     this.repoJuryKeuze = repoJuryKeuze;
     this.uow = uow;
     this.engNominatie = engNominatie;
 }
コード例 #5
0
        public UsersController(IUOW uow, NLog.ILogger logger, ApplicationRoleManager roleManager, ApplicationSignInManager signInManager, ApplicationUserManager userManager, IAuthenticationManager authenticationManager)
        {
            _logger = logger;
            _roleManager = roleManager;
            _signInManager = signInManager;
            _userManager = userManager;
            _authenticationManager = authenticationManager;
            _uow = uow;

            _logger.Debug("InstanceId: " + _instanceId);
        }
コード例 #6
0
 public ContentService(TFContext context, IGenericRepository<Award> repoAward, INominatieRepository repoNominatie, ISponsorRepository repoSponsor, INieuwsItemRepository repoNieuwsItem, IGenericRepository<Setup> repoSetup,
  IGenericRepository<Contact> repoContact ,  IGenericRepository<HallOfFame> repoHallOfFame ,  IGenericRepository<Home> repoHome ,  IGenericRepository<JuryLid> repoJuryLid , IGenericRepository<Page> repoPage ,
 IJuryKeuzeRepository repoJuryKeuze, IGenericRepository<FlickrAlbum> repoFlickr, IUOW uow)
 {
     this.context = context;
     this.repoAward = repoAward;
     this.repoNominatie = repoNominatie;
     this.repoSponsor = repoSponsor;
     this.repoNieuwsItem = repoNieuwsItem;
     this.repoSetup = repoSetup;
     this.repoContact = repoContact;
     this.repoHallOfFame = repoHallOfFame;
     this.repoHome = repoHome;
     this.repoJuryLid = repoJuryLid;
     this.repoPage = repoPage;
     this.repoJuryKeuze = repoJuryKeuze;
     this.uow = uow;
     this.repoFlickr = repoFlickr;
 }
コード例 #7
0
 public EntityReferenceValidator(IUOW UOW, ICurrentContext CurrentContext)
 {
     this.UOW            = UOW;
     this.CurrentContext = CurrentContext;
 }
コード例 #8
0
 public ProfessionValidator(IUOW UOW, ICurrentContext CurrentContext)
 {
     this.UOW            = UOW;
     this.CurrentContext = CurrentContext;
 }
コード例 #9
0
 public CustomerEmailValidator(IUOW UOW, ICurrentContext CurrentContext)
 {
     this.UOW            = UOW;
     this.CurrentContext = CurrentContext;
 }
コード例 #10
0
 public Leerlingservice(IUOW uow, IGenericRepository<Leerling> LeerlingRepository, ILeerlingrepository repository)
 {
     this.uow = uow;
     this.LeerlingRepository = LeerlingRepository;
     this.lrepository = repository;
 }
コード例 #11
0
        private SetContactCode SetContact(UserDTO userDTO, string value, string propertyName, Func <string, IUOW, CheckResult> checkFunc, IUOW Data)
        {
            var User = GetUserService.Get(userDTO, Data);

            if (User == null)
            {
                return(SetContactCode.UserNotFound);
            }
            if (User.GetType().GetProperty(propertyName).GetValue(User) != null)
            {
                return(SetContactCode.AlreadySet);
            }
            var check = checkFunc(value, Data);

            if (check == CheckResult.AlreadyExists)
            {
                return(SetContactCode.AlreadyExists);
            }
            else if (check == CheckResult.WrongValue)
            {
                return(SetContactCode.WrongValue);
            }

            User.GetType().GetProperty(propertyName).SetValue(User, new Contact {
                Confirmed = false, Value = value
            });
            Data.UserRepository.Edited(User);
            Data.SaveChanges();
            return(SetContactCode.Succsess);
        }
コード例 #12
0
 public AttendanceService(IUOW uow_, IResponse response_, IMapper mapper_)
 {
     UOW      = uow_;
     mapper   = mapper_;
     response = response_;
 }
コード例 #13
0
 public ManufactorersController(IUOW uow)
 {
     _uow = uow;
 }
 public ComputerSpecificationsController(IUOW uow)
 {
     _uow = uow;
 }
コード例 #15
0
 public Gebruikersservice(IUOW uow, IGenericRepository<ApplicationUser> reposID, IGebruikersrepository repository)
 {
     this.uow = uow;
     this.reposIdentity = reposID;
     this.repository = repository;
 }
コード例 #16
0
 public HomeController(IUOW uow)
 {
     _uow = uow;
 }
コード例 #17
0
        //private DataBaseContext _uow = new DataBaseContext();

        public ProductSelectorsController(IUOW uow)
        {
            _uow = uow;
        }
コード例 #18
0
 public MapsController(IUOW uow)
 {
     _uow = uow;
 }
コード例 #19
0
 public ArticlesController(IUOW uow)
 {
     _uow = uow;
 }
コード例 #20
0
 public SLAEscalationPhoneValidator(IUOW UOW, ICurrentContext CurrentContext)
 {
     this.UOW            = UOW;
     this.CurrentContext = CurrentContext;
 }
コード例 #21
0
 public OefeningService(IUOW uow, IGenericRepository<Oefeningen> reposOef, IGenericRepository<Resultaten> reposRes)
 {
     this.uow = uow;
     this.reposOef = reposOef;
     this.reposRes = reposRes;
 }
 public DeleteProductByIdCommandHandler(IUOW unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
コード例 #23
0
        //private DataBaseContext _uow = new DataBaseContext();

        public MatchesController(IUOW uow)
        {
            _uow = uow;
        }
コード例 #24
0
        private ConfirmResult ConfirmContact(UserDTO userDTO, string propertyName, Func <Contact, IUOW, string, ConfirmResult> func, IUOW Data, string key = null)
        {
            var User = GetUserService.Get(userDTO, Data);

            if (User == null)
            {
                return new ConfirmResult {
                           Status = ConfirmCode.UserNotFound
                }
            }
            ;
            var Property = User.GetType().GetProperty(propertyName);
            var Contact  = Property.GetValue(User) as Contact;

            if (Contact == null)
            {
                return new ConfirmResult {
                           Status = ConfirmCode.ContactNotFound
                }
            }
            ;
            return(func(Contact, Data, key));
        }
コード例 #25
0
        //private DataBaseContext _uow = new DataBaseContext();

        public PieceInComputersController(IUOW uow)
        {
            _uow = uow;
        }
コード例 #26
0
 public SemesterService(IUOW UOW, ISemesterValidator SemesterValidator)
 {
     this.UOW = UOW;
     this.SemesterValidator = SemesterValidator;
 }
コード例 #27
0
 public ExerciseInWorkoutsController(IUOW uow)
 {
     _uow = uow;
 }
コード例 #28
0
ファイル: GroupsController.cs プロジェクト: vlarok/web
 public GroupsController(IUOW uow)
 {
     _uow = uow;
 }
コード例 #29
0
 //private DataBaseContext _uow = new DataBaseContext();
 public GameSpecificationsController(IUOW uow)
 {
     _uow = uow;
 }
コード例 #30
0
 public CustomerLeadSourceValidator(IUOW UOW, ICurrentContext CurrentContext)
 {
     this.UOW            = UOW;
     this.CurrentContext = CurrentContext;
 }
コード例 #31
0
 public HomeController(ILogger <HomeController> logger, IUOW service)
 {
     _logger  = logger;
     _service = service;
 }
コード例 #32
0
 public Leerlingservice(IUOW uow, IGenericRepository <Leerling> LeerlingRepository, ILeerlingrepository repository)
 {
     this.uow = uow;
     this.LeerlingRepository = LeerlingRepository;
     this.lrepository        = repository;
 }
コード例 #33
0
 //private DataBaseContext _uow = new DataBaseContext();
 public GameSpecificationsController(IUOW uow)
 {
     _uow = uow;
 }
コード例 #34
0
 public University_Majors_SubjectGroupValidator(IUOW UOW)
 {
     this.UOW = UOW;
 }
コード例 #35
0
 //private DataBaseContext _uow = new DataBaseContext();
 public TeamsController(IUOW uow)
 {
     _uow = uow;
 }
コード例 #36
0
 public DiscountContentValidator(IUOW UOW)
 {
     this.UOW = UOW;
 }
コード例 #37
0
 public CatalogController(IUOW service, UserManager <User> userManager)
 {
     _service     = service;
     _userManager = userManager;
 }
コード例 #38
0
 public SessionController(IUOW iUOW, IDirector director)
 {
     _uow      = iUOW;
     _director = director;
 }
コード例 #39
0
 public University_Majors_SubjectGroupService(IUOW UOW)
 {
     this.UOW = UOW;
 }
コード例 #40
0
 public ArticlesController(IUOW uow)
 {
     _uow = uow;
 }
コード例 #41
0
 public TicketService(IUOW uow_, IResponse response_, INotificationService notification_)
 {
     UOW          = uow_;
     response     = response_;
     notification = notification_;
 }
コード例 #42
0
        //private DataBaseContext _uow = new DataBaseContext();

        public ModelSeriesController(IUOW uow)
        {
            _uow = uow;
        }
コード例 #43
0
 public BlogPostsController(IUOW uow)
 {
     _logger.Debug("InstanceId: " + _instanceId);
     _uow = uow;
 }
コード例 #44
0
 public UserStore(IUOW uow)
     : base(uow)
 {
 }
コード例 #45
0
 public DartaController(IMapper _map, IUOW _uow, IGenericRepository <Dartas> _Irepo)
 {
     this._Irepo = _Irepo;
     this._uow   = _uow;
     this._map   = _map;
 }
コード例 #46
0
 public ImageValidator(IUOW UOW, ICurrentContext CurrentContext)
 {
     this.UOW            = UOW;
     this.CurrentContext = CurrentContext;
 }
コード例 #47
0
 public SemesterValidator(IUOW UOW)
 {
     this.UOW = UOW;
 }
コード例 #48
0
 private void SetPassword(User user, string password, IUOW Data)
 {
     user.Password = PassHasher.Get(password);
     Data.UserRepository.Edited(user);
     Data.SaveChanges();
 }
コード例 #49
0
 public PlayersController(IUOW uow)
 {
     _uow = uow;
 }
コード例 #50
0
        private ConfirmResult RemoveContact(User User, string propertyName, Func <Contact, IUOW, string, ConfirmResult> func, AuthType checkType, IUOW Data, string key = null)
        {
            if (User == null)
            {
                return new ConfirmResult {
                           Status = ConfirmCode.UserNotFound
                }
            }
            ;
            var Property = User.GetType().GetProperty(propertyName);
            var Contact  = Property.GetValue(User) as Contact;

            if (Contact == null)
            {
                return new ConfirmResult {
                           Status = ConfirmCode.ContactNotFound
                }
            }
            ;
            var res = func(Contact, Data, key);

            if (res.Status == ConfirmCode.Success && User.authType == checkType)
            {
                Property.SetValue(User, null);

                User.authType = AuthType.Simple;
                Data.UserRepository.Edited(User);
                Data.SaveChanges();
            }
            return(res);
        }
コード例 #51
0
 public ContactStatusValidator(IUOW UOW, ICurrentContext CurrentContext)
 {
     this.UOW            = UOW;
     this.CurrentContext = CurrentContext;
 }