private TiqueteDto ObtenerTiqueteSalida(TiqueteDto tiqueteDto) { TiqueteContext tiqueteContext = new TiqueteContext(); tiqueteContext.SetTarifaStrategy(validadorVehiculoService.ResolverInstanciaTarifaStrategy()); return(tiqueteContext.CalcularValorTiquete(tiqueteDto)); }
public PersonaController(TiqueteContext context) { _personaService = new PersonaService(context); }
public TiqueteController(TiqueteContext context) { _tiqueteService = new TiqueteService(context); }
public TiqueteController(TiqueteContext context, IHubContext <SignalHub> hubContext) { _hubContext = hubContext; _tiqueteService = new TiqueteService(context); }
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); }
public TiqueteService(TiqueteContext context) { _context = context; }
public UserService(TiqueteContext context) { _context = context; }
public PersonaService(TiqueteContext context) { _context = context; }