예제 #1
0
        public List <Cuota> ListarCuotaPorResidente(string pCorreoResidente)
        {
            List <Cuota> lstCuota = new List <Cuota>();

            try
            {
                cuotaDAO = new CuotaDAO();

                lstCuota = cuotaDAO.ListarPorResidente(pCorreoResidente);
            }
            catch (Exception exception)
            {
                throw new FaultException <RetornaMensaje>
                          (new RetornaMensaje
                {
                    Mensage     = string.Format(resMensajes.msjNoListado, "Cuota"),
                    CodigoError = exception.GetHashCode().ToString(),
                    Exito       = true
                }
                          , new FaultReason(exception.Message));
            }
            return(lstCuota);
        }