コード例 #1
0
        public SearchModel Validate(ref SearchModel model)
        {
            if (SearchModel.IsEmpty(model))
            {
                model = Session["SearchModel"] as SearchModel;
                if (SearchModel.IsEmpty(model))
                {
                    model = new SearchModel()
                    {
                        Format = Format.Standard
                    };
                }
            }

            return(model);
        }