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