// GET api/party/5 public HttpResponseMessage Get(int id) { var result = _partyService.GetParty(id); return(result == null?Request.CreateResponse(HttpStatusCode.BadRequest, "Event Not Found") : Request.CreateResponse(HttpStatusCode.OK, result)); }
public IHttpActionResult GetParty(string partyId) { return(Ok(partyService.GetParty(int.Parse(partyId)))); }
public PartyEntity Party([FromRoute] string partyName) { return(partyService .GetParty(partyName)); }