public Products() { Data = new eProducts(); }
private eProducts ProductEntity() { eProducts entityProduct = new eProducts(); int nItemID = ConvertData.ConvertToInt(Request.QueryString[Constants.ACTION_ID]); string sQueery = ConvertData.ConvertToString(Request.QueryString[Constants.ACTION]); if (nItemID > 0 && sQueery == Constants.ACTION_EDIT) { Products obj = new Products(); obj.LoadById(nItemID); entityProduct = obj.Data; } return entityProduct; }