noobprogrammerr 0 Newbie Poster
[OperationContract]
[WebInvoke(UriTemplate = "GetCurrentUpComingEventsByEstate?estateName=EstName",
RequestFormat = WebMessageFormat.Xml,
ResponseFormat = WebMessageFormat.Xml)]
List<EventEntity> GetCurrentUpComingEventsByEstate(string EstName);



public List<EventEntity> GetCurrentUpComingEventsByEstate(string EstName)
{
EventDBModelDataContext context = new EventDBModelDataContext();
var res = from e in context.EventEntities
where e.eventDate >= DateTime.Now 
&& e.estateName.Equals(EstName)
select e;
return res.ToList();
}

This is my codes. But the endpoint is not found when i tried to run it in web browser. Can someone pls help ?