public JsonResult Delete(int id) { var success = _connectionService.Delete(id); return(success ? Success() : Failed()); }