demo20230512/WCFService/IWCFProductService.cs

21 lines
609 B
C#
Raw Normal View History

2023-05-12 10:20:28 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Weee.Models;
namespace Weee.WCFService
{
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IWCFProductService" in both code and config file together.
[ServiceContract]
public interface IWCFProductService
{
[OperationContract]
IEnumerable<Product> GetProducts(string authId);
[OperationContract]
Product SaveProduct(Product toBeSave, string authId);
}
}