public bool GetData() { bool x = false; DepartmentEntity data = delGetData(this.Id); if (!data.IsNull_Ex()) { x = true; this.Id = data.Id; this.DateMade = data.DateMade; this.MadeById = data.MadeById; this.Name_Ar = data.Name_Ar; this.Name_En = data.Name_En; this.RowId = data.RowId; } return(x); }