public Response <ReferralViewModel> AddReferral(ReferralViewModel referral)
 {
     return(referralRepository.AddReferral(referral));
 }
Пример #2
0
 /// <summary>
 /// Initiates a patient referral from one doctor to another
 /// </summary>
 /// <param name="patientId"></param>
 /// <param name="referringDocId"></param>
 /// <param name="referredDocId"></param>
 /// <returns>true if patient successfully referred, else false</returns>
 public void ReferPatient(int patientId, int referringDocId, int referredDocId)
 {
     _referralRepository.AddReferral(patientId, referringDocId, referredDocId);
     AssignDoctorToPatient(referredDocId, patientId);
 }