コード例 #1
0
        public Paciente Agregar(Paciente paciente)
        {
            Paciente         result = default(Paciente);
            IPacienteService proxy  = ServiceFactory.Get <IPacienteService>();

            try
            {
                result = proxy.Agregar(paciente);
            }
            catch (FaultException fex)
            {
                throw new ApplicationException(fex.Message);
            }

            return(result);
        }