/// <inheritdoc /> public async Task <ResponseValueDto> GetByIdAsync(Guid valueId) { if (valueId == Guid.Empty) { return(null); } var valueEntity = await _valueRepository.GetByIdAsync(valueId); return(_mapper.Map <Entities.Value, ResponseValueDto>(valueEntity));; }
/// <inheritdoc /> public async Task <ValueDto> GetByIdAsync(Guid valueId) { if (valueId == Guid.Empty) { return(null); } var valueEntity = await _valueRepository.GetByIdAsync(valueId); var valueMapp = _mapper.Map <Domen.Entities.Value, ValueDto>(valueEntity); return(valueMapp); }
public async Task <IActionResult> GetValueById(int id) { return(Ok(await _valueRepository.GetByIdAsync(id))); }