public ShotType GetById(int id) { using (var context = new BolfTrackerContext()) { var shotType = context.ShotTypes.SingleOrDefault(st => st.Id == id); return shotType; } }