Ejemplo n.º 1
0
 public UnitOfWork(BlogContext context,
                   IPostRepository posts,
                   IPostContentRepository postContents,
                   ICommentRepository comments,
                   ITagRepository tags,
                   IRatingRepository ratings,
                   IVerificationRepository authorVerifications,
                   IVerificationStatusRepository verificationStatuses,
                   IProfileRepository userProfiles,
                   UserManager <User> userManager,
                   RoleManager <IdentityRole> roleManager,
                   SignInManager <User> signInManager)
 {
     _context             = context;
     Posts                = posts;
     PostContents         = postContents;
     Comments             = comments;
     Tags                 = tags;
     Ratings              = ratings;
     AuthorVerifications  = authorVerifications;
     VerificationStatuses = verificationStatuses;
     UserProfiles         = userProfiles;
     UserManager          = userManager;
     RoleManager          = roleManager;
     SignInManager        = signInManager;
 }
        public VerificationStatusController(IVerificationStatusRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.ToLong();
            this._UserId = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog = catalog;

            this.VerificationStatusRepository = repository;
        }
Ejemplo n.º 3
0
        public VerificationStatusController(IVerificationStatusRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.ToLong();
            this._UserId   = view.UserId.ToInt();
            this._OfficeId = view.OfficeId.ToInt();
            this._Catalog  = catalog;

            this.VerificationStatusRepository = repository;
        }
        public VerificationStatusController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog = AppUsers.GetCurrentUserDB();

            this.VerificationStatusRepository = new MixERP.Net.Schemas.Core.Data.VerificationStatus
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Ejemplo n.º 5
0
        public VerificationStatusController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.ToLong();
            this._UserId   = AppUsers.GetCurrent().View.UserId.ToInt();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt();
            this._Catalog  = AppUsers.GetCurrentUserDB();

            this.VerificationStatusRepository = new MixERP.Net.Schemas.Core.Data.VerificationStatus
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
Ejemplo n.º 6
0
        public VerificationStatusController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.To <long>();
            this._UserId   = AppUsers.GetCurrent().View.UserId.To <int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To <int>();
            this._Catalog  = AppUsers.GetCatalog();

            this.VerificationStatusRepository = new Extems.Admission.DataAccess.VerificationStatus
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
        public VerificationStatusController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.To<long>();
            this._UserId = AppUsers.GetCurrent().View.UserId.To<int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To<int>();
            this._Catalog = AppUsers.GetCatalog();

            this.VerificationStatusRepository = new Extems.Admission.DataAccess.VerificationStatus
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }