Esempio n. 1
0
        public RepositoryResult <User> Find(Guid identifier)
        {
            HuntContext context = null;

            try{
                //context = new HuntContext();
                //var found = context.Users.Find(identifier);
                var found = context.Users.Include(h => h.Huntings).FirstOrDefault(i => i.Identifier == identifier);
                return(found != null ?
                       new RepositoryResult <User>(true, found, TAG + "07") :
                       new RepositoryResult <User>(false, null, TAG + "08"));
            }catch (Exception ex) {
                return(new RepositoryResult <User>(false, null));
            }finally{
            }
        }
 public RoleRepository(HuntContext context)
 {
     this.context = context;
     LoggerConfig.ReadConfiguration();
 }
Esempio n. 3
0
 public PartialHuntingRepository(HuntContext context)
 {
     this.context = context;
     LoggerConfig.ReadConfiguration();
 }