Exemple #1
0
        public async Task <object> GetClinicByAdminId(Guid adminId)
        {
            try
            {
                var clinicAdmin = await _userContract.GetUserById(adminId) as Employee;

                var result = _clinicRepository.Find(clinic => clinic.ClinicId.Equals(clinicAdmin.ClinicId)).First();
                return(result);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
Exemple #2
0
 public async Task <object> GetUserById([FromRoute] Guid id)
 {
     return(await _userContract.GetUserById(id));
 }