Esempio n. 1
0
        public int AddAuthorizePractitioner(AuthorizePractitionerModel authorizePractitioner)
        {
            AuthorizePractitionerModel check = new AuthorizePractitionerModel();
            int result = 0;

            try
            {
                PatientData dataLayer = new PatientData();
                check = dataLayer.AddAuthorizePractitioner(authorizePractitioner);

                if (!check.PatientId.Equals(Guid.Empty) && !check.PractitionerId.Equals(Guid.Empty))
                {
                    result = 1;
                    new LogHelper().LogMessage("PatientBusiness.AddAuthorizePractitioner : " + "Success");
                }
            }
            catch (Exception err)
            {
                new LogHelper().LogMessage("PatientBusiness.AddAuthorizePractitioner : " + err);
            }

            return(result);
        }