Skip to content

Instantly share code, notes, and snippets.

View vbilopav's full-sized avatar
🏠
Working from home

Vedran Bilopavlović vbilopav

🏠
Working from home
View GitHub Profile
[DataContract]
public class Response
{
[DataMember]
public bool Success { get; set; }
}
[DataContract]
public class Request
{
[DataContract]
public class Result
{
[DataMember]
public bool Success { get; set; }
}
[DataContract]
public class SomeWorkParams
{
@vbilopav
vbilopav / s-5_1.cs
Last active September 1, 2015 09:56
[ServiceContract]
public interface IMyServiceSample
{
[OperationContract] //soap xml
[WebGet(ResponseFormat = WebMessageFormat.Json)] //json
bool DoSomeWork(int param1, string param2);
// …