My class Goes like this
public class Search
{
public string SearchText { get; set; }
public string ContinentId { get; set; }
public string CategoryId { get; set; }
public string InformationById { get; set; }
public string City { get; set; }
public string CountryId { get; set; }
public string NameOfOwner { get; set; }
public string RegistrationType { get; set; }
}
My action method is
[OutputCache(Duration =60, VaryByParam = "*")]
public PartialViewResult Search(Search search, int? page)
{
//Code goes here
}
I want the vary By Param to vary with all the properties of my class Search and page