Beispiel #1
0
 public UsuarioController(VeterinariaContext context,
                          UserManager <Usuario> userManager,
                          SignInManager <Usuario> signInManager)
 {
     _context       = context;
     _userManager   = userManager;
     _signInManager = signInManager;
 }
        public LoginController(VeterinariaContext context, IOptions <AppSetting> appSettings)
        {
            _context = context;
            var admin = _context.Users.Find("Lrochety");

            if (admin == null)
            {
                _context.Users.Add(new User()
                {
                    UserName       = "******",
                    Password       = "******",
                    Email          = "*****@*****.**",
                    identificacion = "938493094",
                    FirstName      = "Rocha jr",
                    LastName       = "",
                    Role           = "admin",
                    MobilePhone    = "3014341494"
                }
                                   );
                var registrosGuardados = _context.SaveChanges();
            }
            _userService = new UserService(context);
            _jwtService  = new JwtService(appSettings);
        }
Beispiel #3
0
 public ServicioController(VeterinariaContext context)
 {
     _servicio = new ServicioVeterinariaServicio(context);
 }
 public ClienteController(VeterinariaContext context, IHubContext <SignalHub> hubContext)
 {
     _clienteService = new ClienteServicio(context);
     _hubContext     = hubContext;
 }
Beispiel #5
0
 public ClienteServicio(VeterinariaContext context)
 {
     _context = context;
 }
 public ConsultaRepository(VeterinariaContext db)
 {
     _db = db;
 }
 public VeterinarioRepositorio(VeterinariaContext context)
 {
     _context = context;
 }
 public FacturaRepository(VeterinariaContext db)
 {
     _db = db;
 }
 public UsuarioRepository(VeterinariaContext db)
 {
     _db = db;
 }
Beispiel #10
0
 public FacturaController(VeterinariaContext context)
 {
     _facturaServicio = new FacturaServicio(context);
 }
Beispiel #11
0
 public HomeController(VeterinariaContext x)
 {
     _context = x;
 }
Beispiel #12
0
 public MascotaRepository(VeterinariaContext db)
 {
     _db = db;
 }
 public RolRepository(VeterinariaContext db)
 {
     _db = db;
 }
Beispiel #14
0
 public ClienteRepository(VeterinariaContext db)
 {
     _db = db;
 }
 public ServicioVeterinariaServicio(VeterinariaContext context)
 {
     _repositorio = context;
 }
Beispiel #16
0
 public AtendimentoRepositorio(VeterinariaContext context)
 {
     _context = context;
 }
 public UsuarioController(VeterinariaContext context)
 {
     _userService = new UserService(context);
 }
Beispiel #18
0
 public EmpleadoRepository(VeterinariaContext db)
 {
     _db = db;
 }
Beispiel #19
0
 public BichinhoRepositorio(VeterinariaContext context)
 {
     _context = context;
 }
 public UserService(VeterinariaContext context) => _context = context;
Beispiel #21
0
 public ResponsavelRepositorio(VeterinariaContext context)
 {
     _context = context;
 }
Beispiel #22
0
 public FacturaServicio(VeterinariaContext context)
 {
     _context = context;
 }
 public ServicioRepository(VeterinariaContext db)
 {
     _db = db;
 }
 public AccionRepository(VeterinariaContext db)
 {
     _db = db;
 }
 public BanhoTosaRepositorio(VeterinariaContext context)
 {
     _context = context;
 }