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