Exemple #1
0
 internal List <TipoCubrimiento> ObtenerTipoCubrimientos()
 {
     using (SegurosContext con = new SegurosContext())
     {
         return(con.TipoCubrimiento.ToList());
     }
 }
 internal List <Cliente> ObtenerClientes()
 {
     using (SegurosContext con = new SegurosContext())
     {
         return(con.Cliente.ToList());
     }
 }
 internal Cliente ObtenerClientePorId(int clienteId)
 {
     using (SegurosContext con = new SegurosContext())
     {
         return(con.Cliente.FirstOrDefault(p => p.Id == clienteId));
     }
 }
 internal List <Poliza> ObtenerPolizasPorCliente(int clienteId)
 {
     using (SegurosContext con = new SegurosContext())
     {
         return(con.Poliza.Where(p => p.ClienteId == clienteId && p.Estado == Seguros.Entities.Enums.EstadosEnum.Asignada).ToList());
     }
 }
 internal void GuardarPoliza(Poliza poliza)
 {
     using (SegurosContext con = new SegurosContext())
     {
         con.Poliza.Add(poliza);
         con.SaveChanges();
     }
 }
        internal void CancelarPolizas(Poliza poliza)
        {
            using (SegurosContext con = new SegurosContext())
            {
                poliza.Estado           = Seguros.Entities.Enums.EstadosEnum.Cancelada;
                con.Entry(poliza).State = EntityState.Modified;


                con.SaveChanges();
            }
        }
 public AuthRepository()
 {
     _ctx         = new SegurosContext();
     _userManager = new UserManager <IdentityUser>(new UserStore <IdentityUser>(_ctx));
 }
 public GeneroesController(SegurosContext context)
 {
     _context = context;
 }
 public UsuarioService(SegurosContext db, IOptions <AppSettings> appSettings)
 {
     _db          = db;
     _appSettings = appSettings.Value;
 }
Exemple #10
0
 public TSegPolizasRepository(SegurosContext context)
 {
     _context = context;
 }
Exemple #11
0
 public ModeloesController(SegurosContext context)
 {
     _context = context;
 }
 public RolController(SegurosContext SegurosContext)
 {
     _context = SegurosContext;
 }
Exemple #13
0
 public ColorsController(SegurosContext context)
 {
     _context = context;
 }
 public TSegUsuariosRepository()
 {
     _context = new SegurosContext();
 }
 public TSegUsuariosRepository(SegurosContext context)
 {
     _context = context;
 }
Exemple #16
0
 public TipoDocumentoController(SegurosContext SegurosContext)
 {
     _context = SegurosContext;
 }
Exemple #17
0
 public MarcaController(SegurosContext SegurosContext)
 {
     _context = SegurosContext;
 }
Exemple #18
0
 public CiudadController(SegurosContext SegurosContext)
 {
     _context = SegurosContext;
 }
 public VehiculoesController(SegurosContext context)
 {
     _context = context;
 }
Exemple #20
0
 public ItemMenusController(SegurosContext context)
 {
     _context = context;
 }
Exemple #21
0
 public MarcasController(SegurosContext context)
 {
     _context = context;
 }
Exemple #22
0
 public PersonasController(SegurosContext context)
 {
     _context = context;
 }
Exemple #23
0
 public TSegPolizasRepository()
 {
     _context = new SegurosContext();
 }
Exemple #24
0
 public SeguroService(SegurosContext db)
 {
     _db = db;
 }
 public TSegPolizaTipoCubrimientoRepository(SegurosContext context)
 {
     _context = context;
 }
 public TSegPolizaTipoCubrimientoRepository()
 {
     _context = new SegurosContext();
 }
 public SiniestroesController(SegurosContext context)
 {
     _context = context;
 }
Exemple #28
0
 public PolizasController(SegurosContext context)
 {
     _context = context;
 }
 public LoginsController(SegurosContext context)
 {
     _context = context;
 }
 public ModeloController(SegurosContext SegurosContext)
 {
     _context = SegurosContext;
 }