public IHttpActionResult DeleteMessage(int id) { //FileLogger.Instance.Log("api/message/id HttpDelete request", DataFormatUtil.GetFormatedLongDateTimeString(DateTime.Now)); bool result = MessageDB.DeleteUser(id); if (!result) { return(BadRequest()); } return(Ok()); }