public PractitionerBaseViewModel GetProfile(PractitionerBaseViewModel vm) { PractitionerBaseViewModel result = new PractitionerBaseViewModel(); PractitionerBusiness businessLayer = new PractitionerBusiness(); result = businessLayer.GetProfile(vm); return(result); }
public int MakeAppointment(AppointmentModel appointmentModel) { int result = 0; PatientBusiness businessLayer = new PatientBusiness(); result = businessLayer.MakeAppointment(appointmentModel); if (result == 1) { PractitionerBaseViewModel pt = new PractitionerBaseViewModel(); PractitionerBaseViewModel ptResult = new PractitionerBaseViewModel(); pt.AccId = appointmentModel.PractitionerId; PractitionerBusiness practitionerBusiness = new PractitionerBusiness(); ptResult = practitionerBusiness.GetProfile(pt); businessLayer.SentEmailNotification(appointmentModel, ptResult); } return(result); }