I have declared an enum:
public enum SupportedPermissions
{
basic,
repository,
both
}
I also have a POCO like this:
<
First change the method parameter Enum supportedPermissions to SupportedPermissions supportedPermissions.
Then create your file like this
file = new File
{
Name = name,
Id = id,
Description = description,
SupportedPermissions = supportedPermissions
};
And the call to your method should be
CreateFile(id, name, description, SupportedPermissions.basic);