Here request is the LIST with the "sortcolumns" property, so Initialy it "sortcolumns" is null so programmatically I am trying to assign a two values which are part of sort columns
request.SortColumns.Add( new SortColumn() { Name = "PolicyName", Direction = DirectionType.Descending });
I am always getting this error, please let me know why - Object reference not set to an instance of an object.
here
public class SortColumn
{
public string Name { get; set; }
public DirectionType Direction { get; set; }
}