예제 #1
0
        public Contacto Obtener(int id_contacto, ref string msj)
        {
            Contacto result = new Contacto();

            msj = string.Empty;
            try
            {
                result = contactoDAL.GetContacto(id_contacto);
                if (result == null)
                {
                    msj = "No existe el contacto.";
                }
            }
            catch (Exception ex)
            {
                msj = ex.Message;
            }
            return(result);
        }