public string DataInsert(Product aProduct) { bool IsInsert = gateway.Insert(aProduct) > 0; if (IsInsert) { return("Insert is Successed"); } else { return("Insert is Failed"); } }
public string Save(Product pro) { string message = ""; int row = productGateway.Insert(pro); if (row > 0) { message = "Saved Successful"; } else { message = "Saved Failed"; } return(message); }
public int Insert(Products aProducts) { return(aProductGateway.Insert(aProducts)); }