Esempio n. 1
0
        IResultadoApplication <ICollection <ProcessoListaViewModel> > IProcessoAppService.Listar()
        {
            var result = new ResultadoApplication <ICollection <ProcessoListaViewModel> >();

            try
            {
                result.DefinirData(mapper.Map <ICollection <ProcessoListaViewModel> >(service.Listar()));
                result.ExecutadoComSuccesso();
            }
            catch (System.Exception ex)
            {
                result.ExecutadoComErro(ex);
            }

            return(result);
        }