public string DataInsert(Product aProduct)
        {
            bool IsInsert = gateway.Insert(aProduct) > 0;

            if (IsInsert)
            {
                return("Insert is Successed");
            }
            else
            {
                return("Insert is Failed");
            }
        }
Beispiel #2
0
        public string Save(Product pro)
        {
            string message = "";
            int    row     = productGateway.Insert(pro);

            if (row > 0)
            {
                message = "Saved Successful";
            }
            else
            {
                message = "Saved Failed";
            }
            return(message);
        }
Beispiel #3
0
 public int Insert(Products aProducts)
 {
     return(aProductGateway.Insert(aProducts));
 }