public override void Prepare(ModifyCategoryParameter parameter)
        {
            SelectedCategory = new CategoryViewModel();
            Title            = Strings.AddCategoryTitle;

            base.Prepare(parameter);
        }
Ejemplo n.º 2
0
        public override async void Prepare(ModifyCategoryParameter parameter)
        {
            SelectedCategory = await crudServices.ReadSingleAsync <CategoryViewModel>(parameter.CategoryId)
                               .ConfigureAwait(true);

            Title = string.Format(CultureInfo.InvariantCulture, Strings.EditCategoryTitle, SelectedCategory.Name);

            base.Prepare(parameter);
        }