Skip to content

Instantly share code, notes, and snippets.

View sharvilshah1994's full-sized avatar

Sharvil Shah sharvilshah1994

  • Microsoft
  • Bellevue, WA
View GitHub Profile
@sharvilshah1994
sharvilshah1994 / ODataExample.cs
Created June 25, 2019 21:32
OData multiple query example
[HttpGet]
[ODataRoute("ExpiredTokens(Id={Id},ExpiryDate={ExpiryDate})")]
public IHttpActionResult WhateverName([FromODataUri]int Id, [FromODataUri]string ExpiryDate)
{
return Ok(_repository.GetCount(Id, ExpiryDate));
}
/// Then make following request
GET ~/ExpiredTokens(Id=10,ExpiryDate='2019-06-30')
@sharvilshah1994
sharvilshah1994 / README.md
Created January 31, 2018 21:18 — forked from hofmannsven/README.md
My simply Git Cheatsheet