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