private CasePaymentPlanVM Transform(CasePaymentPlan n) { var r = new CasePaymentPlanVM(); r.Active = n.Active; r.Amount = n.Amount; r.CaseId = n.CaseId; r.EndDate = n.EndDate; r.Frequency = n.Frequency; r.Id = n.Id; r.StartDate = n.StartDate; return(r); }
public CasePaymentPlanVM Transform(CasePaymentPlan n) { var r = new CasePaymentPlanVM { PaymentPlanActive = n.Active, Amount = n.Amount, PaymentPlanCaseId = n.CaseId, PaymentPlanEndDate = n.EndDate, Frequency = n.Frequency, Id = n.Id, PaymentPlanStartDate = n.StartDate, PatientID = n.Case.PatientID, PatientName = n.Case.Patient.CommonName, PatientGender = !string.IsNullOrEmpty(n.Case.Patient.Gender) ? ((Domain.Gender)Enum.Parse(typeof(Domain.Gender), n.Case.Patient.Gender)).ToString().First().ToString() : string.Empty }; return(r); }