// GET api/Tips/GetByCatId?id=1&local=En public IEnumerable <TipModel> GetByCatId(int id, string local) { return(context.GetByCategoryId(id).Select(t => this.ToModel(t, local)).ToList()); }
// GET api/Tips/GetByCatId?id=1 public IEnumerable <Tip> GetByCatId(int id) { return(context.GetByCategoryId(id)); }