public DirectResult Get(int id, string table) { var objLookup = _lookup.Get(id, table); var lookup = new { objLookup.Id, objLookup.Name, objLookup.Code }; return(this.Json(new { success = true, data = lookup })); }