public CreateFlagController(ICreateFlagRepository repository, string catalog, LoginView view) { this._LoginId = view.LoginId.ToLong(); this._UserId = view.UserId.ToInt(); this._OfficeId = view.OfficeId.ToInt(); this._Catalog = catalog; this.repository = repository; }
protected override void Initialize(HttpControllerContext context) { base.Initialize(context); if (this.repository == null) { this.repository = new CreateFlagProcedure { _Catalog = this.MetaUser.Catalog, _LoginId = this.MetaUser.LoginId, _UserId = this.MetaUser.UserId }; } }
public CreateFlagController() { 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.repository = new CreateFlagProcedure { _Catalog = this._Catalog, _LoginId = this._LoginId, _UserId = this._UserId }; }
public CreateFlagController(ICreateFlagRepository repository) { this.repository = repository; }