Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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);
        }