public ObligationViewModel GetObligation(int clientId, int obligationId) { Obligation obligation = clientProfileService.GetClientObligation(obligationId); var model = new ObligationViewModel(); model.CompanyName = obligation.CompanyName; model.OutstandingAmount = obligation.OutstandingAmount; model.MonthlyPayments = obligation.MontlyPayments ?? default(decimal); model.ExpirationDate = obligation.ExpirationDate; model.DelayAmount = obligation.DelayAmount; model.ObligationId = obligation.Id; return(model); }