public List <Estado> ObtenerTodoss()
 {
     using (var db = new Conexionbd())
     {
         return(db.Estados.ToList());
     }
 }
 public List <Tipo> ObtenerTodos()
 {
     using (var db = new Conexionbd())
     {
         return(db.Tipos.ToList());
     }
 }
 public SesionController(Conexionbd _db)
 {
     db = _db;
 }
 public VehiculoController(Conexionbd _db, IHostingEnvironment hostingEnvironment)
 {
     db = _db;
     _hostingEnvironment = hostingEnvironment;
 }