Exemplo n.º 1
0
 public HttpResponseMessage Logout(int userId)
 {
     return((LogicUser.UpdateUserIp(userId)) ?
            new HttpResponseMessage(HttpStatusCode.OK) :
            new HttpResponseMessage(HttpStatusCode.BadRequest)
     {
         Content = new ObjectContent <String>("Can not update in DB", new JsonMediaTypeFormatter())
     });
 }