예제 #1
0
        public async Task <ObservableCollection <Comentario> > GetComentario(string idPlato)
        {
            try
            {
                var xx = await Task.Factory.FromAsync <ObservableCollection <Comentario> >(proxy.BeginGetComentario(idPlato, null, null), proxy.EndGetComentario);

                return(xx);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }