Exemple #1
0
        private TiqueteDto ObtenerTiqueteSalida(TiqueteDto tiqueteDto)
        {
            TiqueteContext tiqueteContext = new TiqueteContext();

            tiqueteContext.SetTarifaStrategy(validadorVehiculoService.ResolverInstanciaTarifaStrategy());
            return(tiqueteContext.CalcularValorTiquete(tiqueteDto));
        }
Exemple #2
0
                public PersonaController(TiqueteContext context)
                
        {
                    
                            _personaService  =  new PersonaService(context);

                    
        }
Exemple #3
0
                public TiqueteController(TiqueteContext context)
                
        {
                    
                             _tiqueteService  =  new TiqueteService(context);

                    
        }
                public TiqueteController(TiqueteContext context, IHubContext <SignalHub> hubContext)
                
        {
                     _hubContext = hubContext;

                         _tiqueteService  =  new TiqueteService(context);
                    
        }
Exemple #5
0
        public LoginController(TiqueteContext context, IOptions <AppSetting> appSettings)
        {
            _context = context;
            var admin = _context.Users.Find("admin");

            if (admin == null)
            {
                _context.Users.Add(new User()
                {
                    UserName    = "******",
                    Password    = "******",
                    Email       = "*****@*****.**",
                    Estado      = "AC",
                    FirstName   = "Administrador",
                    LastName    = "",
                    MobilePhone = "31800000000"
                }
                                   );
                var registrosGuardados = _context.SaveChanges();
            }
            _userService = new UserService(context);
            _jwtService  = new JwtService(appSettings);
        }
Exemple #6
0
 public TiqueteService(TiqueteContext context)
 {
     _context = context;
 }
Exemple #7
0
 public UserService(TiqueteContext context)
 {
     _context = context;
 }
         public TiqueteService(TiqueteContext context)
         
 {
                 _context = context;
             
 }
 public PersonaService(TiqueteContext context)
 {
     _context = context;
 }