/// <summary> /// Get labels. /// </summary> /// <returns> /// Returns labels. /// </returns> public async Task <List <LabelDto> > GetAllLabels() { return(await _labelRepo.GetByUser(_userId)); }
/// <summary> /// Gets the by user. /// </summary> /// <param name="paginationParams">The pagination parameters.</param> /// <param name="userId">The user identifier.</param> /// <returns></returns> public async Task <PagedList <LabelDto> > GetByUser(PaginationParameters paginationParams, int userId) { return(await _labelRepository.GetByUser(paginationParams, userId)); }