public PaymentPeriodEntity(DataAccessLogic.tblPaymentPeriod paymentPeriod) { this.ID = paymentPeriod.ID; this.Name = paymentPeriod.Name; this.Description = paymentPeriod.Description; this.CreatedBy = paymentPeriod.CreatedBy; this.CreatedDate = paymentPeriod.CreatedDate; }
public T MapToModel <T>() where T : class { DataAccessLogic.tblPaymentPeriod paymentPeriod = new DataAccessLogic.tblPaymentPeriod(); paymentPeriod.ID = this.ID; paymentPeriod.Name = this.Name; paymentPeriod.Description = this.Description; paymentPeriod.CreatedBy = this.CreatedBy; paymentPeriod.CreatedDate = this.CreatedDate; return(paymentPeriod as T); }