public TaskCommentsController( ITaskCommentRepository taskCommentRepository, UserManager <User> userManager) { _taskCommentRepository = taskCommentRepository; _userManager = userManager; }
/// <summary> /// Initializes a new instance of the <see cref="TaskService"/> class. /// </summary> /// <param name="taskRepository">The task repository.</param> /// <param name="taskCommentRepository">The task comment repository.</param> public TaskService(ITaskRepository taskRepository, ITaskCommentRepository taskCommentRepository) { this.taskRepository = taskRepository; this.taskCommentRepository = taskCommentRepository; }
public TaskCommentService(ITaskCommentRepository commentRepo) { _commentRepo = commentRepo; }