public int New_(int p_patient, string p_name, MoSIoTGenNHibernate.Enumerated.MosIoT.DisabilityTypeEnum p_type, MoSIoTGenNHibernate.Enumerated.MosIoT.SeverityEnum p_severity, string p_description) { DisabilityEN disabilityEN = null; int oid; //Initialized DisabilityEN disabilityEN = new DisabilityEN(); if (p_patient != -1) { // El argumento p_patient -> Property patient es oid = false // Lista de oids id disabilityEN.Patient = new MoSIoTGenNHibernate.EN.MosIoT.PatientProfileEN(); disabilityEN.Patient.Id = p_patient; } disabilityEN.Name = p_name; disabilityEN.Type = p_type; disabilityEN.Severity = p_severity; disabilityEN.Description = p_description; //Call to DisabilityCAD oid = _IDisabilityCAD.New_(disabilityEN); return(oid); }