public HomeController(IConfiguration config) { this._factory = new Factory.Factory(config); this._account = this._factory.AccountLogic(); this._vehicle = this._factory.VehicleLogic(); this._order = this._factory.OrderLogic(); }
public RideController(IConfiguration config) { this._factory = new Factory.Factory(config); this._rideLogic = this._factory.RideLogic(); this._accountLogic = this._factory.AccountLogic(); this._pickOrderLogic = this._factory.PickOrderLogic(); this._vehicleLogic = this._factory.VehicleLogic(); }
public string LoginSistema(string Nome, string Senha) { Factory.Factory factory = new Factory.Factory(); string connString = factory.ConexaoOracle(); OracleConnection con = new OracleConnection(); con.ConnectionString = connString.ToString(); con.Open(); OracleCommand cmd = new OracleCommand(SpLogin, con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new OracleParameter(ParamNome, Nome)); cmd.Parameters.Add(new OracleParameter(ParamSenha, Senha)); var pRetorno = new OracleParameter(ParamReturnChar, OracleDbType.Char, ParameterDirection.Output); pRetorno.Size = 30; cmd.Parameters.Add(pRetorno); cmd.ExecuteNonQuery(); con.Close(); return(pRetorno.Value.ToString()); }
public Engine() { factory = new Factory.Factory(); participants = new List <IBuyer>(); }
public OrderController(IConfiguration configuration) { this._factory = new Factory.Factory(configuration); this._order = this._factory.OrderLogic(); }
public AccountController(IConfiguration config) { this.Config = config; Factory = new Factory.Factory(this.Config); }
public VehicleController(IConfiguration config) { this._factory = new Factory.Factory(config); this._vehicle = this._factory.VehicleLogic(); }
public ValuesController(Factory.Factory factory) { _accountLogic = factory.GetAccountLogic(Engine.Memory); }
public PickOrderController(IConfiguration config) { _factory = new Factory.Factory(config); _pickOrder = this._factory.PickOrderLogic(); _order = this._factory.OrderLogic(); }
public RankingController(Factory.Factory factory) { _rankingLogic = factory.GetRankingLogic(Engine.Memory); }
/// <summary> /// Read the configuration file and creates the factory. /// </summary> /// <param name="configuration">Needed to read the appsettings.json connectionstring</param> public AccountController(IConfiguration configuration) { this._factory = new Factory.Factory(configuration); this._account = this._factory.AccountLogic(); }