public HttpResponseMessage Delete(int id, int userId) { return((LogicUser.RemoveUser(id, userId)) ? new HttpResponseMessage(HttpStatusCode.OK) : new HttpResponseMessage(HttpStatusCode.BadRequest) { Content = new ObjectContent <String>("Can not remove from DB", new JsonMediaTypeFormatter()) }); }