示例#1
0
 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();
 }
示例#2
0
 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();
 }
示例#3
0
        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());
        }
示例#4
0
 public Engine()
 {
     factory      = new Factory.Factory();
     participants = new List <IBuyer>();
 }
示例#5
0
 public OrderController(IConfiguration configuration)
 {
     this._factory = new Factory.Factory(configuration);
     this._order   = this._factory.OrderLogic();
 }
示例#6
0
 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();
 }
示例#10
0
 public RankingController(Factory.Factory factory)
 {
     _rankingLogic = factory.GetRankingLogic(Engine.Memory);
 }
示例#11
0
 /// <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();
 }