示例#1
0
 // GET api/Group/5?GetType=-1
 public IEnumerable <dynamic> GetGroup(int id, bool GetType)
 {
     //return db.spTICK_GroupTypes_Get(id).Select(t => new { Type = (t == null ? "NULL" : t) }).AsEnumerable(); //reshape output from sproc as comes out generic w/out col names
     return(db.spTICK_GroupTypes_Get(id).Where(w => w != null).Select(t => new { Type = t }).AsEnumerable()); //reshape output from sproc as comes out generic w/out col names
 }