Exemplo n.º 1
0
        protected virtual void InitDropDowns()
        {
            this.Genders = GenderModel
                           .GetEnumerable()
                           .OrderBy(x => x.Value == GendersEnum.Undefined ? int.MaxValue : (int)x.Value)
                           .ToList();

            this.Cases = CyrDeclineCase
                         .GetEnumerable()
                         .ToList();

            this.Numbers = NumberModel
                           .GetEnumerable()
                           .ToList();

            this.InputGender = this.Genders.First();
            this.InputCase   = this.Cases.First();
            this.InputNumber = this.Numbers.First();
        }