public IHttpActionResult DeleteMaterialOrder(int id) { try { OM.DeleteOrderMat(id);; return(Ok("pppp0")); } catch (Exception e) { return(BadRequest(e.ToString())); } }