Ejemplo n.º 1
0
        public LoanResponseModel GetLoanRequestsSentByUser(LoanRequestModel request)
        {
            LoanResponseModel response    = new LoanResponseModel();
            ILoanDataAccess   _repository = new LoanDataAccess();

            response.ObjTractorLoanList          = _repository.GetTractorLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjKisanCreditCardList      = _repository.GetKisanCreditCardList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjCropLoanList             = _repository.GetCropLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjGoldLoanList             = _repository.GetGoldLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjDripIrrigationLoanList   = _repository.GetDripIrrigationLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjDairyLoanList            = _repository.GetDairyLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjPoultryLoanList          = _repository.GetPoultryLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjProduceMarketingLoanList = _repository.GetProduceMarketingLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjStartupLoanList          = _repository.GetStartupLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjAgriLandLoanList         = _repository.GetAgriLandLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjMicroCreditLoanList      = _repository.GetMicroCreditLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjStreeShaktiLoanList      = _repository.GetStreeShaktiLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjPersonalLoanList         = _repository.GetPersonalLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjHouseLoanList            = _repository.GetHouseLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.ObjMarriageLoanList         = _repository.GetMarriageLoanList(request.ObjTractorLoanReq.CreatedBy);
            response.Status = 1;
            return(response);
        }