Exemplo n.º 1
0
        public static List <ApprovalViewModel> GetPendingApprovals()
        {
            var pendingApprovals       = ApprovalRepository.FindPendingApprovalForPetsThatAreNotAlreadyApproved();
            var pendApprovalViewModels = ApprovalViewModelAssembler.Assemble(pendingApprovals);

            return(pendApprovalViewModels);
        }
Exemplo n.º 2
0
        public static List <ApprovalViewModel> GetApprovals(ApprovalState approvalState)
        {
            var approvals          = ApprovalRepository.FindApprovalsByApprovalState(approvalState);
            var approvalViewModels = ApprovalViewModelAssembler.Assemble(approvals);

            return(approvalViewModels);
        }