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); }
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); }
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 }; }