public static bool SavePatientAttachement(PatientAttachment_cu patientAttachement) { if (patientAttachement == null) { return(false); } if (patientAttachement.SaveChanges()) { PatientAttachment_cu.ItemsList.Add(patientAttachement); return(true); } return(false); }