All pastes #411774 Raw Edit

reznor

public text v1 · immutable
#411774 ·published 2007-03-27 07:23 UTC
rendered paste body
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class SmartMartWebServices : System.Web.Services.WebService
{
    public SmartMartWebServices()
    {
        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public DataSet lookupAllProductData()
    {
        try
        {
            return new SmartMartLibrary.SmartMart().lookupAllProductData();
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }

    [WebMethod]
    public bool updateProduct(int ProductId, string BrandName, string ProductName, double SRP, double GrossWeight, double NetWeight, double ShelfWidth, double ShelfHeight, double ShelfDepth, string LastUpdated)
    {
        try
        {
            return new SmartMartLibrary.SmartMart().updateProduct(ProductId, BrandName, ProductName, SRP, GrossWeight, NetWeight, ShelfWidth, ShelfHeight, ShelfDepth, LastUpdated);
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
}