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