/// <summary> /// Get label by id. /// </summary> /// <param name="labelId">label id.</param> /// <returns></returns> public async Task <LabelDto> GetLabelById(int labelId) { return(await _labelRepo.GetById(labelId, _userId)); }
/// <summary> /// Gets the by identifier. /// </summary> /// <param name="labelId">The label identifier.</param> /// <param name="userId">The user identifier.</param> /// <returns></returns> public async Task <LabelDto> GetById(int labelId, int userId) { return(await _labelRepository.GetById(labelId, userId)); }