示例#1
0
        public static UserModel GetUserById(Guid Id)
        {
            UnitOfWorkRepository unitOfWork = new UnitOfWorkRepository();
            var user  = unitOfWork.UserRepository.GetUserId(Id);
            var model = UserModelFactory.ConvertUser(user);

            return(model);
        }
示例#2
0
        public static UserModel GetUser(string username, string password)
        {
            UnitOfWorkRepository unitOfWork = new UnitOfWorkRepository();
            var user  = unitOfWork.UserRepository.GetUser(username, password);
            var model = UserModelFactory.ConvertUser(user);

            return(model);
        }