Ejemplo n.º 1
0
        public void OnGet(string returnUrl = null)
        {
            ReturnUrl = returnUrl;

            // Setting this to null here, so that it doesn't show the same error message from OnPostAsync
            RegistrationStatusMessage = null;

            if (Gender == null || Day == null || Month == null || Year == null)
            {
                Gender = _listItem.GetGenderAsync();
            }
            Day = _listItem.GetDayAsync(); Month = _listItem.GetMonthAsync(); Year = _listItem.GetYearAsync();
        }