This file contains hidden or 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.Collections.Generic; | |
using System.Globalization; | |
using System.Linq; | |
using System.ServiceModel; | |
using System.ServiceModel.Activation; | |
namespace appRest | |
{ | |
[AspNetCompatibilityRequirements |
This file contains hidden or 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.Runtime.Serialization; | |
namespace appRest | |
{ | |
[DataContract] | |
public class Pessoa | |
{ | |
[DataMember] | |
public string Id { get; set; } |
This file contains hidden or 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.Collections.Generic; | |
using System.ServiceModel; | |
using System.ServiceModel.Web; | |
namespace appRest | |
{ | |
[ServiceContract] | |
public interface IRestService | |
{ | |
//POST operation |
This file contains hidden or 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
<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> |
NewerOlder