コード例 #1
0
        public dynamic CompartirDatos(string sesion, string celularOrigen, string celularDestino, string gb, string celularPadre)
        {
            Int64 intento = 0;

            if (!String.IsNullOrEmpty(sesion) &&
                !String.IsNullOrEmpty(celularOrigen) &&
                Int64.TryParse(celularOrigen, out intento) &&
                celularOrigen.Length == 10 &&
                !String.IsNullOrEmpty(celularDestino) &&
                Int64.TryParse(celularDestino, out intento) &&
                celularDestino.Length == 10 &&
                Int64.TryParse(gb, out intento) &&
                !String.IsNullOrEmpty(celularPadre) &&
                Int64.TryParse(celularPadre, out intento) &&
                celularPadre.Length == 10)
            {
                return(_bussinessRepository.CompartirDatos(sesion, celularOrigen, celularDestino, gb, celularPadre));
            }

            return(string.Empty);
        }