Example #1
0
        /// <inheritdoc />
        public async Task <PatientModel> GetPatientDto(UserProfile profile)
        {
            var visits = await _visitRepository.GetByUserId(profile.Id);

            var toRet = new PatientModel
            {
                UserData = profile,
                Visits   = visits
            };

            return(toRet);
        }