Skip to content

Instantly share code, notes, and snippets.

View renatocantarino's full-sized avatar

Renato Cantarino renatocantarino

View GitHub Profile
@renatocantarino
renatocantarino / model
Created June 19, 2013 14:36
Implementação do Service.svc
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Activation;
namespace appRest
{
[AspNetCompatibilityRequirements
using System.Runtime.Serialization;
namespace appRest
{
[DataContract]
public class Pessoa
{
[DataMember]
public string Id { get; set; }
using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Web;
namespace appRest
{
[ServiceContract]
public interface IRestService
{
//POST operation
<body>
<p id="bind">Pegar Localização:</p>
<button onclick="getLocation()">Localizar</button>
<div id="map"></div>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>