public override void Prepare(ModifyCategoryParameter parameter) { SelectedCategory = new CategoryViewModel(); Title = Strings.AddCategoryTitle; base.Prepare(parameter); }
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); }