[HttpGet]
public HttpResponseMessage Date(String date)
{
try
{
var users = db.Complains.Where(u => u.Date ==date ).ToList();
return Request.CreateResponse(HttpStatusCode.OK, users);
}
catch (Exception ex)
{
return Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message);
}
}