/// <summary> /// Initializes a new instance of the <see cref="ProjectController" /> class /// </summary> /// <param name="projectService">The project service which is used to communicate with the logic layer.</param> /// <param name="userService">The user service which is used to communicate with the logic layer.</param> /// <param name="mapper">The mapper which is used to convert the resources to the models to the resource results.</param> /// <param name="fileService">The file service which is used to communicate with the logic layer.</param> /// <param name="userProjectLikeService"> /// The service that handles liked project by users which is used to communicate with /// the logic layer. /// </param> /// <param name="authorizationHelper"> /// The authorization helper which is used to communicate with the authorization helper /// class. /// </param> /// <param name="fileUploader">The file uploader service is used to upload the files into the file system</param> /// <param name="userProjectService"> /// The user project service is responsible for users that are following / liking /// projects. /// </param> /// <param name="callToActionOptionService">The call to action option service is used to communicate with the logic layer.</param> public ProjectController(IProjectService projectService, IUserService userService, IMapper mapper, IFileService fileService, IUserProjectLikeService userProjectLikeService, IAuthorizationHelper authorizationHelper, IFileUploader fileUploader, IUserProjectService userProjectService, ICallToActionOptionService callToActionOptionService) { this.projectService = projectService; this.userService = userService; this.userProjectLikeService = userProjectLikeService; this.fileService = fileService; this.fileUploader = fileUploader; this.mapper = mapper; this.authorizationHelper = authorizationHelper; this.userProjectService = userProjectService; this.callToActionOptionService = callToActionOptionService; }
/// <summary> /// Initializes a new instance of the <see cref="CallToActionOptionController"/> class. /// </summary> /// <param name="mapper">The mapper which is used to convert the resources to the models to the resource results.</param> /// <param name="callToActionOptionService">The call to action option service which is used to communicate with the logic layer.</param> public CallToActionOptionController(IMapper mapper, ICallToActionOptionService callToActionOptionService) { this.mapper = mapper; this.callToActionOptionService = callToActionOptionService; }