Beispiel #1
0
        public ClsConsentForm ConsentFormSubmit(ClsConsentForm model)
        {
            ClsConsentForm ConsentFormSubmit = new ClsConsentForm();

            using (IDbConnection con = new SqlConnection(ConnectionString))
            {
                if (con.State == ConnectionState.Closed)
                {
                    con.Open();
                }
                DynamicParameters parameters = new DynamicParameters();
                parameters.Add("@AppointmenId", model.AppointmenId);
                parameters.Add("@UserId", model.UserId);
                parameters.Add("@FullName", model.FullName);
                parameters.Add("@Address", model.Address);
                parameters.Add("@Phone", model.Phone);
                parameters.Add("@Signature", model.Signature);
                parameters.Add("@UserEnteredDate", model.UserEnteredDate);
                parameters.Add("@EmergencyContactPerson", model.EmergencyContactPerson);
                parameters.Add("@ConsentPdfFile", model.ConsentPdfFile);
                // parameters.Add("@pdffile", model.pdffile);

                ConsentFormSubmit = con.Query <ClsConsentForm>("EAPCreateAppointmentConsents", parameters, commandType: CommandType.StoredProcedure).FirstOrDefault();
            }
            return(ConsentFormSubmit);
        }
Beispiel #2
0
 public ClsConsentForm ConsentFormSubmit(ClsConsentForm model)
 {
     return(_aceRepository.ConsentFormSubmit(model));
 }