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