This commit is contained in:
@@ -7,6 +7,8 @@ namespace AyaNova.Biz
|
||||
public const string Integer = "int";
|
||||
public const string Bool = "bool";
|
||||
public const string Decimal = "decimal";
|
||||
public const string Tags="tags";
|
||||
public const string Tags = "tags";
|
||||
public const string Enum = "enum";//enums are just integers in the db so the sql code handles it like an int, but the client needs to know it's an enum
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -635,7 +635,7 @@ namespace AyaNova.Biz
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case AyDataType.Enum://enums are just ints to the db, but it's a special type so the client can recognize it
|
||||
case AyDataType.Decimal:
|
||||
case AyDataType.Integer: //whole numbers, not only integer
|
||||
{
|
||||
|
||||
@@ -155,6 +155,7 @@ namespace AyaNova.Biz
|
||||
AddField("active", "CommonActive", AyDataType.Bool).
|
||||
AddField("tags", "Tags", AyDataType.Tags).
|
||||
AddField("EmployeeNumber", "UserEmployeeNumber", AyDataType.Text).
|
||||
AddField("usertype", "UserUserType", AyDataType.Enum).
|
||||
AddField("notes", "WidgetNotes", AyDataType.Text);
|
||||
|
||||
if (localizeToLocaleId != 0)
|
||||
@@ -224,7 +225,7 @@ namespace AyaNova.Biz
|
||||
{
|
||||
cleanedItems.Append(CleanUserForReturn(item));
|
||||
}
|
||||
|
||||
|
||||
var pageLinks = new PaginationLinkBuilder(Url, routeName, null, pagingOptions, totalRecordCount).PagingLinksObject();
|
||||
ApiPagedResponse<System.Object> pr = new ApiPagedResponse<System.Object>(cleanedItems, pageLinks);
|
||||
return pr;
|
||||
|
||||
Reference in New Issue
Block a user