public AdvertDetailsPresenter(IAdvertDetailsView view, IAdvertsService advertService) : base(view) { this.advertService = advertService; this.View.OnAdvertDetails += View_OnAdvertDetails; this.View.OnUpdateAdvert += View_OnUpdateAdvert; }
public AdvertController(IAdvertsService advertsService, ICommentsService commentsService, UserStore <User> userStore) { _advertsService = advertsService; _commentsService = commentsService; _userStore = userStore; _userManager = new UserManager <User>(userStore); }
public AdvertsPresenter(IAdvertsView view, IAdvertsService advertsService) : base(view) { this.advertsService = advertsService; this.View.OnAdvertsGetData += this.View_OnAdvertsGetData; this.View.OnDeleteAdvert += View_OnDeleteAdvert; }
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; }
public SearchPresenter(ISearchView view, IAdvertsService advertService) : base(view) { if (advertService == null) { throw new ArgumentNullException("Service cannot be null"); } this.advertService = advertService; this.View.OnRepeaterGetData += this.View_OnRepeaterGetData; }
public StorageHealthCheck(IAdvertsService advertsService) { _advertsService = advertsService; }
public AdvertsController(IAdvertsService advertsService, IConfiguration configuration) { _advertsService = advertsService; _configuration = configuration; }
public AdvertsController(IBusPublisher busPublisher, IAdvertsService advertsService) : base(busPublisher) { _advertsService = advertsService; }