// GET: api/AccessPoint/5 public AccessPoint Get(string id) { AccessPoint accessPoints = new AccessPoint(); AccessPointPersistence ap = new AccessPointPersistence(); accessPoints = ap.GetAccessPointsByName(id); return(accessPoints); }
// GET: api/AccessPoint public List <AccessPoint> Get() { List <AccessPoint> accessPoints = new List <AccessPoint>(); AccessPointPersistence ap = new AccessPointPersistence(); accessPoints = ap.GetAllAccessPoints(); return(accessPoints); }