public async Task <MedicationDto> Get(Guid id) { var result = await _repository.Get(id); if (result == null) { return(null); } var mapperActivities = _mapper.Map <Medication, MedicationDto>(result); return(mapperActivities); }