public ActionResult AjaxPostback(AjaxFormModel model)
        {
            var showString1 = false;
            var showString2 = false;

            if (model.Date.HasValue)
            {
                var modelDate = model.Date.Value.Date;
                var today     = DateTime.Now.Date;
                var yesterday = today - TimeSpan.FromDays(1);

                showString1 = modelDate == today || modelDate == yesterday;
                showString2 = modelDate == yesterday;
            }

            return(AjaxActions(new []
            {
                AjaxAction.ShowHideFormGroup <AjaxFormModel>(m => m.String1, showString1),
                AjaxAction.ShowHideFormGroup <AjaxFormModel>(m => m.String2, showString2),
            }));
        }
 public ActionResult AjaxForm(AjaxFormModel model)
 {
     return(View());
 }