Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gosukiwi
Created July 24, 2012 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gosukiwi/3170709 to your computer and use it in GitHub Desktop.
Save gosukiwi/3170709 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
namespace Emberjs_TODO_List
{
[WebService(Namespace = "http://gosukiwi.blogspot.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
[System.Web.Script.Services.ScriptService]
public class TodoManager : System.Web.Services.WebService
{
[WebMethod]
public Todo AddTodo(string title, bool isDone)
{
return new Todo
{
title = title,
isDone = isDone,
};
}
}
public class Todo
{
public string title;
public bool isDone;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment