public CreateCategoryPresenter(ICreateCategoryView view, IAdvertCategoryService advertCategoryService) : base(view) { this.advertCategoryService = advertCategoryService; this.View.OnGetAllCategories += View_OnGetAllCategories; this.View.OnCreateNewCategory += View_OnCreateNewCategory; this.View.OnUpdateCategory += View_OnUpdateCategory; this.View.OnDeleteCategory += View_OnDeleteCategory; }
public CreateAdvertPresenter(ICreateAdvertView view, IAdvertCategoryService adCategoryService, ICityService cityService, IAdvertsService adsService) : base(view) { this.advertsCategoryService = adCategoryService; this.cityService = cityService; this.advertsService = adsService; this.View.CustomOnInit += View_CustomOnInit; this.View.OnCreateAdvert += View_OnCreateAdvert; }