예제 #1
0
        public void CreditDecisionRequests(CreditDecisionRequestsViewModel viewModel)
        {
            var currentRequest = _creditRequestRepository.GetCreditRequestById(viewModel.Id);
            var model          = _creditRequestMapper.MapCreditDecisionRequests(viewModel, currentRequest);

            _creditRequestRepository.UpdateRequest(model);
        }
        public CreditRequest MapCreditDecisionRequests(CreditDecisionRequestsViewModel viewModel, CreditRequest currentRequest)
        {
            currentRequest.Status      = viewModel.Status;
            currentRequest.Description = viewModel.Description;

            return(currentRequest);
        }
예제 #3
0
        public static string CreditDecisionRequests(CreditDecisionRequestsViewModel model)
        {
            _requestService.CreditDecisionRequests(model);

            return("Ok");
        }