public patient_recipelist_druguse Add(patient_recipelist_druguse info, out string error)
 {
     error = string.Empty;
     try
     {
         patient_recipelist_DA recipeDa = new patient_recipelist_DA();
         recipeDa.Add(info, out error);
         return info;
     }
     catch (Exception ex)
     {
         error = Share.BaseTool.FormatExceptionMessage(ex);
         return null;
     }
 }
 public patient_recipelist_druguse Add(patient_recipelist_druguse info, out string error)
 {
     error = string.Empty;
     try
     {
         db.patient_recipelist_druguse.Add(info);
         db.SaveChanges();
         return info;
     }
     catch (System.Data.Entity.Validation.DbEntityValidationException ex)
     {
         error = Share.BaseTool.FormatExceptionMessage(ex);
         return null;
     }
 }