0

我的课是这样的

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; }
}

我的行动方法是

[OutputCache(Duration =60, VaryByParam = "*")]
    public PartialViewResult Search(Search search, int? page)
    {
        //Code goes here
    }

我希望 Varly By Param 随我的类搜索和页面的所有属性而变化

4

0 回答 0