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; } }
public async Task <object> GetUserById([FromRoute] Guid id) { return(await _userContract.GetUserById(id)); }