コード例 #1
0
        public User GetByLogin(string login)
        {
            if (DemoUserService.IsDemoUser(login))
            {
                return(DemoUserService.GetDemoUser(login));
            }

            using (var uow = Read())
            {
                var da  = new UserDataAccess(uow);
                var res = da.GetUser(login, null, null);
                return(res);
            }
        }
コード例 #2
0
 private User GetDemoUser(string roleName, string prefix)
 {
     return(DemoUserService.GetDemoUser(roleName, prefix));
 }