コード例 #1
0
ファイル: PersonBiz.cs プロジェクト: dovanduy/Library
        public ApplicationUser GetUserFor(string personId)
        {
            Person person = Find(personId);

            person.IsNullThrowException();
            //we are using the fact that they have the same name
            ApplicationUser user = UserBiz.FindByUserName_UserManager(person.Name);

            user.IsNullThrowException();
            //every person must have a user.
            return(user);
        }