Created
July 24, 2012 15:35
-
-
Save gosukiwi/3170709 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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