public List <Destination> GetDestinations() { try { using (var context = new DestinationsContext()) { DbInitializer.Initialize(context); var result = context.Destinations.ToList(); return(result); } } catch (Exception ex) { return(null); } }
public DestinationsController(DestinationsContext db) { _db = db; }