public ApplicationController(IMapper mapper , IDeleteApplicationCommand deleteApplicationCommand , IAddApplicationCommand addApplicationCommand , IEditApplicationCommand editApplicationCommand , GetApplicationByIdQuery getApplicationByIdQuery , IGetVendorByIdQuery getVendorByIdQuery , GetClaimSetNamesQuery getClaimSetNamesQuery , GetProfilesQuery getProfilesQuery , RegenerateApiClientSecretCommand regenerateApiClientSecretCommand , IOdsApiFacadeFactory odsApiFacadeFactory , InstanceContext instanceContext , ITabDisplayService tabDisplayService , IOdsApiConnectionInformationProvider apiConnectionInformationProvider , IGetVendorsQuery getVendorsQuery) { _mapper = mapper; _deleteApplicationCommand = deleteApplicationCommand; _addApplicationCommand = addApplicationCommand; _editApplicationCommand = editApplicationCommand; _getApplicationByIdQuery = getApplicationByIdQuery; _getVendorByIdQuery = getVendorByIdQuery; _getClaimSetNamesQuery = getClaimSetNamesQuery; _getProfilesQuery = getProfilesQuery; _regenerateApiClientSecretCommand = regenerateApiClientSecretCommand; _odsApiFacadeFactory = odsApiFacadeFactory; _instanceContext = instanceContext; _tabDisplayService = tabDisplayService; _apiConnectionInformationProvider = apiConnectionInformationProvider; _getVendorsQuery = getVendorsQuery; }
internal Task <IResult> GetVendor(IGetVendorByIdQuery getVendorByIdQuery, IMapper mapper, int id) { var vendor = getVendorByIdQuery.Execute(id); if (vendor == null) { throw new NotFoundException <int>("vendor", id); } var model = mapper.Map <VendorModel>(vendor); return(Task.FromResult(AdminApiResponse <VendorModel> .Ok(model))); }
public GlobalSettingsController(IMapper mapper , IGetVendorsQuery getVendorsQuery , AddVendorCommand addVendorCommand , DeleteVendorCommand deleteVendorCommand , IGetVendorByIdQuery getVendorByIdQuery , EditVendorCommand editVendorCommand , ICloudOdsSettingsService cloudOdsSettingsService , ITabDisplayService tabDisplayService , IGetClaimSetsByApplicationNameQuery getClaimSetsByApplicationNameQuery , GetAdminAppUsersQuery getAdminAppUsersQuery) { _mapper = mapper; _getVendorsQuery = getVendorsQuery; _addVendorCommand = addVendorCommand; _deleteVendorCommand = deleteVendorCommand; _getVendorByIdQuery = getVendorByIdQuery; _editVendorCommand = editVendorCommand; _cloudOdsSettingsService = cloudOdsSettingsService; _tabDisplayService = tabDisplayService; _getClaimSetsByApplicationNameQuery = getClaimSetsByApplicationNameQuery; _getAdminAppUsersQuery = getAdminAppUsersQuery; }
public ApplicationController(IMapper mapper , IDeleteApplicationCommand deleteApplicationCommand , IAddApplicationCommand addApplicationCommand , IEditApplicationCommand editApplicationCommand , GetApplicationByIdQuery getApplicationByIdQuery , IGetVendorByIdQuery getVendorByIdQuery , GetClaimSetNamesQuery getClaimSetNamesQuery , GetProfilesQuery getProfilesQuery , RegenerateApiClientSecretCommand regenerateApiClientSecretCommand , IOdsApiFacadeFactory odsApiFacadeFactory , InstanceContext instanceContext) { _mapper = mapper; _deleteApplicationCommand = deleteApplicationCommand; _addApplicationCommand = addApplicationCommand; _editApplicationCommand = editApplicationCommand; _getApplicationByIdQuery = getApplicationByIdQuery; _getVendorByIdQuery = getVendorByIdQuery; _getClaimSetNamesQuery = getClaimSetNamesQuery; _getProfilesQuery = getProfilesQuery; _regenerateApiClientSecretCommand = regenerateApiClientSecretCommand; _odsApiFacadeFactory = odsApiFacadeFactory; _instanceContext = instanceContext; }