示例#1
0
        public async Task <LoanApplicationNotified> RemoveAsync(LoanApplicationNotified loanApplicationNotified)
        {
            LoanApplicationBll modelBll = this._mapper.Map <LoanApplicationBll>(loanApplicationNotified);

            LoanApplicationBll removedModel = await this._loanApplicationService.RemoveAsync(modelBll);

            LoanApplicationNotified returnModel = this._mapper.Map <LoanApplicationNotified>(removedModel);

            return(returnModel);
        }
示例#2
0
        public async Task <LoanApplicationNotified> EditAsync(LoanApplicationNotified loanApplicationNotified)
        {
            LoanApplicationBll modelBll = this._mapper.Map <LoanApplicationBll>(loanApplicationNotified);

            LoanApplicationBll createdModel = await this._loanApplicationService.EditAsync(modelBll);

            LoanApplicationNotified returnModel = this._mapper.Map <LoanApplicationNotified>(createdModel);

            return(returnModel);
        }
示例#3
0
        public ApplicationViewModel()
        {
            this._mapper = PowerfullToolAutomapper.GetAutomapper();

            IEnumerable <LoanApplicationNotified> loanApplicationNotifieds =
                this._loanApplicationNotifiedService.GetAll();

            this.LoanApplications = new ObservableCollection <LoanApplicationNotified>(loanApplicationNotifieds);

            this._newLoanApplication = new LoanApplicationNotified()
            {
                ApplicationStatus = ApplicationStatusEnumNotified.New,
                DateOfSubmission  = DateTime.UtcNow
            };
        }