Exemplo n.º 1
0
 public Products()
 {
     Data = new eProducts();
 }
Exemplo n.º 2
0
 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;
 }