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); }
public static string CreditDecisionRequests(CreditDecisionRequestsViewModel model) { _requestService.CreditDecisionRequests(model); return("Ok"); }