Created
September 13, 2016 20:58
-
-
Save fabiojansenbr/05dc45428b8d4c442c1bcde5a7a34eba to your computer and use it in GitHub Desktop.
This file contains 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
[Route("api/TrackingUsuarios/{id}")] | |
public HttpResponseMessage GetById(int id) | |
{ | |
var result = db.TrackingUsuarios.Where(x => x.UsuarioId == id).ToList(); | |
return Request.CreateResponse(HttpStatusCode.OK, result); | |
} | |
[Route("api/TrackingUsuarios/{date}")] | |
public HttpResponseMessage GetByPeriod(DateTime? date) | |
{ | |
var result = db.TrackingUsuarios.Where(x => x.DataGps == date).ToList(); | |
return Request.CreateResponse(HttpStatusCode.OK, result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment