public IHttpActionResult GetByAccount(string id) { IQueryable <Goal> items = Logic.GetByAccount(id); if (items == null) { return(NotFound()); } return(Ok(items.ToList())); }