public NegotiatedContentResult <string> Post([FromBody] Lens lens) { if (_Connector.SanatizeCheck(lens.Info())) { _Connector.Connect(); string command = $"INSERT INTO LensCart(LensName, IsActive) VALUES({lens.Info()})"; MySqlCommand execute = new MySqlCommand(command, _Connector.database); _Connector.Disconnect(); return(Content(HttpStatusCode.OK, "")); } else { return(Content(HttpStatusCode.Unauthorized, "Anti-Sql Injection Check failed")); } }