Binding Data to my view

Hi ,
I'm a bit lost , how to bind this to my view ?
the view is not list , it retrun one voucher and only one

var VouchersPart = new Voucher
{

            VoucherID = 50533960,
            OfferID = 122,
            StartDate = Convert.ToDateTime("2018-10-11T00:00:00"),
            ExpiryDate = Convert.ToDateTime("2019-02-01T00:00:00"),
            Conditions = null,
            Message = "test",
            CategoryName = "New year offers",
            SubCategoryName = null,
            Description = "fdf",
            CtcID = 2826091,
            CustomerName = "User",
            Redeemed = true

}

Posts

Sign In or Register to comment.